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": "3a0df642-972e-49f8-a0cf-83c4433449fa",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "3a0df642-972e-49f8-a0cf-83c4433449fa",
    "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": "97d1f520-49e1-4280-911c-96ea0f1b3820",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "97d1f520-49e1-4280-911c-96ea0f1b3820",
    "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": "0c8fccdc-b992-4424-a299-21bd0c08b7f2",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "0c8fccdc-b992-4424-a299-21bd0c08b7f2",
    "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": "32d44447-08ba-4c70-a8ed-3515c9312cbd",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "32d44447-08ba-4c70-a8ed-3515c9312cbd",
    "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": "bde8da00-c64e-459a-a9f8-e6d6126bbfe0",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "bde8da00-c64e-459a-a9f8-e6d6126bbfe0",
    "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": "561ebe97-617e-4b6b-8f3c-f943c289a2fb",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "561ebe97-617e-4b6b-8f3c-f943c289a2fb",
    "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": "0cc9fe0b-231d-4bf3-bdbd-d30e23367bde",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "0cc9fe0b-231d-4bf3-bdbd-d30e23367bde",
    "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": "90bc4d28-31e5-4c39-af81-10a4e8321d44",
      "layout": null,
      "name": null,
      "objects": {},
      "tags": [],
      "widget_list": []
    },
    "id": "90bc4d28-31e5-4c39-af81-10a4e8321d44",
    "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": "ca0ef673-0e70-4ab4-9657-aaa7633dd1a2",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "ca0ef673-0e70-4ab4-9657-aaa7633dd1a2",
    "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": "386dbbce-5fff-48f1-8aad-967ee6366784",
      "name": null,
      "tags": [],
      "width": null
    },
    "id": "386dbbce-5fff-48f1-8aad-967ee6366784",
    "type": "VBoxForm"
  }
]