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": "76ad0e41-c45c-4807-9d29-26ba464f837f",
  "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": "de87d0e1-29ef-4017-a017-207839c7eab6",
  "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": "c6de6f77-4cde-45ee-9cec-afc195c4c4ad",
  "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": "30682d5a-46bd-44e2-8350-028080539e28",
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "text": "",
  "width": null
}