bokeh.models.widgets.markups

Various kinds of markup (static content) widgets.

class Markup(**kwargs)

Bases: bokeh.models.widget.Widget

Base class for HTML markup widget models.

[
  {
    "attributes": {
      "disabled": false,
      "doc": null,
      "id": "d02275d3-d957-42bf-9c04-2ff756a51992",
      "name": null,
      "tags": []
    },
    "id": "d02275d3-d957-42bf-9c04-2ff756a51992",
    "type": "Markup"
  }
]
class Paragraph(**kwargs)

Bases: bokeh.models.widgets.markups.Markup

A block (paragraph) of text.

height

property type: Int

The height of the block in pixels.

text

property type: String

The contents of the widget.

width

property type: Int

The width of the block in pixels.

[
  {
    "attributes": {
      "disabled": false,
      "doc": null,
      "height": 400,
      "id": "ffa0a9ae-8be7-492f-b88a-63d52ae5b8ff",
      "name": null,
      "tags": [],
      "text": null,
      "width": 500
    },
    "id": "ffa0a9ae-8be7-492f-b88a-63d52ae5b8ff",
    "type": "Paragraph"
  }
]
class PreText(**kwargs)

Bases: bokeh.models.widgets.markups.Paragraph

A block (paragraph) of pre-formatted text.

[
  {
    "attributes": {
      "disabled": false,
      "doc": null,
      "height": 400,
      "id": "8288d4d6-4fc5-45f4-8022-2f9b2b5d94b6",
      "name": null,
      "tags": [],
      "text": null,
      "width": 500
    },
    "id": "8288d4d6-4fc5-45f4-8022-2f9b2b5d94b6",
    "type": "PreText"
  }
]