Open ahuang11 opened 8 months ago
from bokeh.themes import Theme from bokeh.plotting import figure from bokeh.io import curdoc from yaml import safe_load import panel as pn pn.extension() theme_json = safe_load( """ attrs: figure: background_fill_color: red background_fill_alpha: 1.0 border_fill_color: red border_fill_alpha: 1.0 outline_line_color: black outline_line_alpha: 1.0 outline_line_width: 2 height: 400 width: 800 """ ) x = [1, 2, 3, 4, 5] y = [6, 7, 2, 4, 5] bokeh_obj = figure(title="dark_minimal", width=300, height=300) bokeh_obj.line(x, y) pn.pane.Bokeh(bokeh_obj, theme="dark_minimal")
The docs also doesn't seem to show it working: https://panel.holoviz.org/reference/panes/Bokeh.html
Add the same issue, outside a notebook I use:
pn.state.curdoc.theme = DARK_MINIMAL
The docs also doesn't seem to show it working: https://panel.holoviz.org/reference/panes/Bokeh.html