1

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.

1 Answer 1

1

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")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.