This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

Bokeh Docs

bokeh.models.widgets.markups

Various kinds of markup (static content) widgets.

class Div(**kwargs)

Bases: bokeh.models.widgets.markups.Markup

A block (div) of text.

render_as_text

property type: render_as_text:Bool

Should the text be rendered as raw text (False, default), or should the text be interprited as an HTML string (True)

JSON Prototype
{
  "disabled": false,
  "height": null,
  "id": "6d10bd8d-a599-48ec-9b25-3b60c10db5ad",
  "name": null,
  "render_as_text": false,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}
class Markup(**kwargs)

Bases: bokeh.models.widgets.widget.Widget

Base class for HTML markup widget models.

text

property type: text:String

The contents of the widget.

JSON Prototype
{
  "disabled": false,
  "height": null,
  "id": "bf49c8cd-8e93-40a7-94ff-c32ce78e24bf",
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}
class Paragraph(**kwargs)

Bases: bokeh.models.widgets.markups.Markup

A block (paragraph) of text.

JSON Prototype
{
  "disabled": false,
  "height": null,
  "id": "7a356cf1-0b2e-43c1-bad6-94eb3fa0a33a",
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}
class PreText(**kwargs)

Bases: bokeh.models.widgets.markups.Paragraph

A block (paragraph) of pre-formatted text.

JSON Prototype
{
  "disabled": false,
  "height": null,
  "id": "ea1b0516-b881-4457-973f-313668b2999c",
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}