altair.theme.enable#

altair.theme.enable(name=None, **options)#

Enable a theme by name.

This can be either called directly, or used as a context manager.

Parameters:
namestring (optional)

The name of the theme to enable. If not specified, then use the current active name.

**options

Any additional parameters will be passed to the theme as keyword arguments

Returns:
PluginEnabler:

An object that allows enable() to be used as a context manager

Notes

Default vega themes can be previewed at https://vega.github.io/vega-themes/