我一直在使用bokeh在使用bokeh的地图上绘制数据。
在jupyter笔记本之外是否可以使用该库?
像在Pychram中一样,将图保存到HTML文件中。
最佳答案
Bokeh可以使用file_html()
函数为Bokeh文档生成完整的HTML页面。您可以参考Embedding Plots and Apps以获得更多详细信息。
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")
关于python - Python我可以在Jupyter笔记本外展示Boke绘图吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/59342476/