You can create static HTML using the following code (adapted from the example here ):
from bokeh.plotting import figure from bokeh.resources import CDN from bokeh.embed import file_html plot = figure() plot.circle([1,2], [3,4]) html = file_html(plot, CDN, "my plot") with open('test.html', 'w') as f: f.write(html)
This is not a problem when combined with output_notebook()
source share