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

Provides API for loading themes

bokeh.themes.theme

Provide a Theme class for specify overrides for default values for Bokeh Model properties.

class Theme(filename=None, json=None)
Parameters:
  • filename (str, optional) – path to a YAML theme file
  • json (str, optional) – a JSON dictionary specifying theme values
Raises:

ValueError – If neither filename or json is supplied.

apply_to_model(model)

Apply this theme to a model.

Warning

Typically, don’t call this method directly. Instead, set the theme on the Document the model is a part of.