You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This call to bokeh.embed.component in the Bokeh widget takes a theme argument. The passed argument needs to be in the form of a bokeh.themes.Theme object which can take a filename (yaml file) or a dict (see source for example) as an argument on instantiation.
I wanted to take it upon myself to modify the code but I think I don't understand widget properties well enough. I tried to add a theme property by adding a new method with the @event.prop decorator but I can't get _plot_components method to recognize the theme value I pass into the BokehWidget. My modified example from the docs, passing a theme argument runs fine but the colors of the plots don't change.
There is a way to get Bokeh plots to take themes.
This call to
bokeh.embed.component
in the Bokeh widget takes atheme
argument. The passed argument needs to be in the form of abokeh.themes.Theme
object which can take a filename (yaml file) or a dict (see source for example) as an argument on instantiation.I wanted to take it upon myself to modify the code but I think I don't understand widget properties well enough. I tried to add a
theme
property by adding a new method with the@event.prop
decorator but I can't get_plot_components
method to recognize thetheme
value I pass into theBokehWidget
. My modified example from the docs, passing atheme
argument runs fine but the colors of the plots don't change.Any guidance would be greatly appreciated.
Here is a "dark theme" for a yaml file:
The text was updated successfully, but these errors were encountered: