bokeh.models.widgets.markups

Various kinds of markup (static content) widgets.

class Markup(**kwargs)

Bases: bokeh.models.widgets.widget.Widget

Base class for HTML markup widget models.

JSON Prototype
{
  "disabled": false,
  "id": "20810813-d6a4-4894-9ad9-263537efb385",
  "name": null,
  "tags": []
}
class Paragraph(**kwargs)

Bases: bokeh.models.widgets.markups.Markup

A block (paragraph) of text.

height

property type: height:Int

The height of the block in pixels.

text

property type: text:String

The contents of the widget.

width

property type: width:Int

The width of the block in pixels.

JSON Prototype
{
  "disabled": false,
  "height": 400,
  "id": "1515e500-4196-4465-9113-4ec31a69507a",
  "name": null,
  "tags": [],
  "text": "",
  "width": 500
}
class PreText(**kwargs)

Bases: bokeh.models.widgets.markups.Paragraph

A block (paragraph) of pre-formatted text.

JSON Prototype
{
  "disabled": false,
  "height": 400,
  "id": "79233c80-2795-4a6c-8b49-5ada6d9d8a13",
  "name": null,
  "tags": [],
  "text": "",
  "width": 500
}