bokeh.settings¶
Control global configuration options with environment variables.
-
settings= <bokeh.settings.Settings object>¶ A global settings object that other parts of Bokeh can refer to.
BOKEH_BROWSER— What browser to use when opening plots- Valid values are any of the browser names understood by the python standard library webbrowser module.
BOKEH_DEV— Whether to use development modeThis uses absolute paths to development (non-minified) BokehJS components, sets logging to
debug, makes generated HTML and JSON human-readable, etc.This is a meta variable equivalent to the following environment variables:
BOKEH_BROWSER=noneBOKEH_LOG_LEVEL=debugBOKEH_MINIFIED=falseBOKEH_PRETTY=trueBOKEH_PY_LOG_LEVEL=debugBOKEH_RESOURCES=absolute-devBOKEH_SIMPLE_IDS=true
Accepted values are
yes/no,true/falseor0/1.BOKEH_DOCS_CDN— What version of BokehJS to use when building sphinx- ~bokeh.resources.Resources class reference for full details.
BOKEH_SIMPLE_IDS— Whether to generate human-friendly object IDsAccepted values are
yes/no,true/falseor0/1. Normally Bokeh generates UUIDs for object identifiers. Setting this variable to an affirmative value will re docs locally.Set to
"local"to use a locally built dev version of BokehJS.Note
This variable is only used when building documentation from the development version.
BOKEH_DOCS_VERSION— What version of Bokeh to show when building sphinxdocs locally. Useful for re-deployment purposes.
Set to
"local"to use a locally built dev version of BokehJS.Note
This variable is only used when building documentation from the development version.
BOKEH_DOCS_CSS_SERVER— Where to get the css stylesheet from, bydefault this will be bokehplots.com
Note
This variable is only used when building documentation from the development version.
BOKEH_LOG_LEVEL— The BokehJS console logging level to useValid values are, in order of increasing severity:
tracedebuginfowarnerrorfatal
The default logging level is
info.Note
When running server examples, it is the value of this
BOKEH_LOG_LEVELthat is set for the server that matters.BOKEH_MINIFIED— Whether to emit minified JavaScript forbokeh.js- Accepted values are
yes/no,true/falseor0/1. BOKEH_PRETTY— Whether to emit “pretty printed” JSON- Accepted values are
yes/no,true/falseor0/1. BOKEH_PY_LOG_LEVEL— The Python logging level to setAs in the JS side, valid values are, in order of increasing severity:
debuginfowarnerrorfatalnone
The default logging level is
none.BOKEH_RESOURCES— What kind of BokehJS resources to configure- For example:
inline,cdn,server. See theResourcesclass reference for full details. BOKEH_ROOTDIR— Root directory to use withrelativeresources- See the
Resourcesclass reference for full details. BOKEH_SIMPLE_IDS— Whether to generate human-friendly object IDs- Accepted values are
yes/no,true/falseor0/1. Normally Bokeh generates UUIDs for object identifiers. Setting this variable to an affirmative value will result in more friendly simple numeric IDs counting up from 1000. BOKEH_VERSION— What version of BokehJS to use withcdnresources- See the
Resourcesclass reference for full details.