This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

Bokeh Docs

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": "f81c7f6a-3169-47b8-8dd7-97464ff2e78e",
  "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": "be89fa99-b4f0-4333-a9f9-98bdf8962839",
  "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": "1fb889de-c445-4af1-8678-b27d61cc8d37",
  "name": null,
  "tags": [],
  "text": "",
  "width": 500
}