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": "3bc15e93-91c2-4f91-839a-7132a4640299",
  "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": "00f78474-f99f-46c0-802f-89e192cdfbdf",
  "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": "dc412599-e09b-4714-ad4b-9871958a7602",
  "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": "05a64d3b-4fc1-4a3b-a3ae-bb65c1dceae1",
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}