bokeh.models.widgets.markups

Various kinds of markup (static content) widgets.

class Paragraph(**kwargs)

Bases: bokeh.models.widget.Widget

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": "0e7686ea-47c9-4357-b2c4-4ef5390b4d39",
      "name": null,
      "tags": [],
      "text": null,
      "width": 500
    },
    "id": "0e7686ea-47c9-4357-b2c4-4ef5390b4d39",
    "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": "ae7f6553-f0f2-4f4e-b521-b9a1e0cb735b",
      "name": null,
      "tags": [],
      "text": null,
      "width": 500
    },
    "id": "ae7f6553-f0f2-4f4e-b521-b9a1e0cb735b",
    "type": "PreText"
  }
]