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.layouts

Various kinds of layout components.

class BaseBox(*args, **kwargs)

Bases: bokeh.models.layouts.Layout

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

children

property type: children:List(Instance(Component))

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

JSON Prototype
{
  "children": [],
  "disabled": false,
  "height": null,
  "id": "ec28b247-f687-47b9-af02-25291b4e73e9",
  "name": null,
  "tags": [],
  "width": null
}
class HBox(*args, **kwargs)

Bases: bokeh.models.layouts.BaseBox

Lay out child components 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.

JSON Prototype
{
  "children": [],
  "disabled": false,
  "height": null,
  "id": "50e46e92-9163-4378-bb6f-72ed58cb2962",
  "name": null,
  "tags": [],
  "width": null
}
class Layout(**kwargs)

Bases: bokeh.models.component.Component

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

height

property type: height:Int

An optional height for the component (in pixels).

width

property type: width:Int

An optional width for the component (in pixels).

JSON Prototype
{
  "disabled": false,
  "height": null,
  "id": "051f2671-598c-43d8-8a20-f7b407fceb33",
  "name": null,
  "tags": [],
  "width": null
}
class VBox(*args, **kwargs)

Bases: bokeh.models.layouts.BaseBox

Lay out child components 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.

JSON Prototype
{
  "children": [],
  "disabled": false,
  "height": null,
  "id": "90160949-d1cf-47bd-a63f-77c5afdcd307",
  "name": null,
  "tags": [],
  "width": null
}
class VBoxForm(*args, **kwargs)

Bases: bokeh.models.layouts.VBox

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

JSON Prototype
{
  "children": [],
  "disabled": false,
  "height": null,
  "id": "1dd37bb6-35cb-4272-9906-42d89e602d59",
  "name": null,
  "tags": [],
  "width": null
}