I've been using bokeh to plot data on a map using bokeh.
Is there a way to work with this library outside jupyter notebook?
Something like in Pychram and saving the plot to HTML file.
Bokeh can generate complete HTML pages for Bokeh documents using the file_html()
function. you can refer Embedding Plots and Apps for more detail.
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")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.