bokeh.models.widgets.layouts

Various kinds of lyaout widgets.

class AppHBox(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.HBox, bokeh.models.widgets.layouts.AppLayout

VBox, except children can be other plot objects, as well as strings (which are then evaluated in an app namespace for de-referencing

children

property type: List(Either(Instance(Widget), String))

The list of children, which can be other widgets (including layouts) and plots - or strings. If strings, there must be a corresponding app which contains the widget/plot matching that string

[
  {
    "attributes": {
      "app": null,
      "children": [],
      "disabled": false,
      "doc": null,
      "height": null,
      "id": "01fed05c-8372-4db6-afe1-5361255a600c",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "01fed05c-8372-4db6-afe1-5361255a600c",
    "type": "AppHBox"
  }
]
class AppLayout(**kwargs)

Bases: bokeh.models.widgets.layouts.Layout

app

property type: Instance(SimpleApp)

[
  {
    "attributes": {
      "app": null,
      "disabled": false,
      "doc": null,
      "height": null,
      "id": "d977d038-c972-471f-b4bb-2f5cbd58a52b",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "d977d038-c972-471f-b4bb-2f5cbd58a52b",
    "type": "AppLayout"
  }
]
class AppVBox(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.VBox, bokeh.models.widgets.layouts.AppLayout

VBox, except children can be other plot objects, as well as strings (which are then evaluated in an app namespace for de-referencing

children

property type: List(Either(Instance(Widget), String))

The list of children, which can be other widgets (including layouts) and plots - or strings. If strings, there must be a corresponding app which contains the widget/plot matching that string

[
  {
    "attributes": {
      "app": null,
      "children": [],
      "disabled": false,
      "doc": null,
      "height": null,
      "id": "f33c4db5-a4a8-4280-a9e0-48effee63998",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "f33c4db5-a4a8-4280-a9e0-48effee63998",
    "type": "AppVBox"
  }
]
class AppVBoxForm(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.VBox, bokeh.models.widgets.layouts.AppLayout

VBox, except children can be other plot objects, as well as strings (which are then evaluated in an app namespace for de-referencing

children

property type: List(Either(Instance(Widget), String))

The list of children, which can be other widgets (including layouts) and plots - or strings. If strings, there must be a corresponding app which contains the widget/plot matching that string

[
  {
    "attributes": {
      "app": null,
      "children": [],
      "disabled": false,
      "doc": null,
      "height": null,
      "id": "5264b696-aacf-49cc-b6df-30a1e3e17c92",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "5264b696-aacf-49cc-b6df-30a1e3e17c92",
    "type": "AppVBoxForm"
  }
]
class BaseBox(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.Layout

Abstract base class for HBox and VBox. Do not use directly.

children

property type: List(Instance(Widget))

The list of children, which can be other widgets (including layouts) and plots.

[
  {
    "attributes": {
      "children": [],
      "disabled": false,
      "doc": null,
      "height": null,
      "id": "99cd734c-88be-4330-a768-24765af7467c",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "99cd734c-88be-4330-a768-24765af7467c",
    "type": "BaseBox"
  }
]
class HBox(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.BaseBox

Lay out child widgets in a single horizontal row.

Children can be specified as positional arguments, as a single argument that is a sequence, or using the children keyword argument.

[
  {
    "attributes": {
      "children": [],
      "disabled": false,
      "doc": null,
      "height": null,
      "id": "26a3060f-e861-49d2-933e-e6288365b6f6",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "26a3060f-e861-49d2-933e-e6288365b6f6",
    "type": "HBox"
  }
]
class Layout(**kwargs)

Bases: bokeh.models.widget.Widget

An abstract base class for layout widgets. Layout is not generally useful to instantiate on its own.

height

property type: Int

An optional height for the widget (in pixels).

width

property type: Int

An optional width for the widget (in pixels).

[
  {
    "attributes": {
      "disabled": false,
      "doc": null,
      "height": null,
      "id": "90efc6c6-5675-46f4-b0f8-2ed531608f58",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "90efc6c6-5675-46f4-b0f8-2ed531608f58",
    "type": "Layout"
  }
]
class SimpleApp(**kwargs)

Bases: bokeh.models.widget.Widget

args_for_func(func)
callback(func)
clear_debounce()
classmethod create(name, widgets)
default_layout()
process_user_result(result)
set_debounce()
set_output()
setup_events()
create_registry = {}
layout

property type: Instance(Widget)

layout_registry = {}
name

property type: String

objects

property type: Dict(String, Either(String, Instance(Widget)))

update_registry = {}
widget_dict
widget_list

property type: List(String)

list of widgets, for ordering

[
  {
    "attributes": {
      "disabled": false,
      "doc": null,
      "id": "865f08d3-417e-4195-bd15-606e938d8637",
      "layout": null,
      "name": null,
      "objects": {},
      "tags": [],
      "widget_list": []
    },
    "id": "865f08d3-417e-4195-bd15-606e938d8637",
    "type": "SimpleApp"
  }
]
class VBox(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.BaseBox

Lay out child widgets in a single vertical row.

Children can be specified as positional arguments, as a single argument that is a sequence, or using the children keyword argument.

[
  {
    "attributes": {
      "children": [],
      "disabled": false,
      "doc": null,
      "height": null,
      "id": "135e8a53-0676-4918-a2dd-3834ee887bab",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "135e8a53-0676-4918-a2dd-3834ee887bab",
    "type": "VBox"
  }
]
class VBoxForm(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.VBox

Basically, a VBox, where all components (generally form stuff) is wrapped in a <form> tag - important for bootstrap css

[
  {
    "attributes": {
      "children": [],
      "disabled": false,
      "doc": null,
      "height": null,
      "id": "3c211dc8-3a6f-4454-aafa-7e59773e7a96",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "3c211dc8-3a6f-4454-aafa-7e59773e7a96",
    "type": "VBoxForm"
  }
]