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": "f703f2d9-1c0e-4bd1-87ef-de17a944b4f8",
  "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": "9b697178-3ee1-4047-8ba4-a052f18f2a04",
  "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": "fd7cdbe1-e91f-445b-846b-3b51db6396ae",
  "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": "28a29539-57ab-4464-a4c0-d5414c794b56",
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}