bokeh.models.widgets.markups

Various kinds of markup (static content) widgets.

class Div(**kwargs)[source]

Bases: bokeh.models.widgets.markups.Markup

A block (div) of text.

render_as_text

property type: Bool

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

JSON Prototype
{
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "51c715af-7a22-4ac1-af47-45036607e55c",
  "js_callbacks": {},
  "name": null,
  "render_as_text": false,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}
class Markup(**kwargs)[source]

Bases: bokeh.models.widgets.widget.Widget

Base class for HTML markup widget models.

text

property type: String

The contents of the widget.

JSON Prototype
{
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "5622f0a1-5a76-4e81-b7fe-f4e97a0bb769",
  "js_callbacks": {},
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}
class Paragraph(**kwargs)[source]

Bases: bokeh.models.widgets.markups.Markup

A block (paragraph) of text.

JSON Prototype
{
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "8122a2a0-2081-411c-a1de-c9448e9c0177",
  "js_callbacks": {},
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}
class PreText(**kwargs)[source]

Bases: bokeh.models.widgets.markups.Paragraph

A block (paragraph) of pre-formatted text.

JSON Prototype
{
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "20ce2041-ee9c-45a8-a864-7c6b0168b9ae",
  "js_callbacks": {},
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}