Bokeh: save plot (as HTML) but don't show it
Use output_file({file_name})
instead of output_notebook()
. You can call either save
or show
method. Remember each time you call save or show method the file will be rewritten.
from bokeh.plotting import figure, output_file, savep = figure(title="Basic Title", plot_width=300, plot_height=300)p.circle([1, 2], [3, 4])output_file("output_file_name.html")save(p)