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)[source]
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)[source]

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.