![](/img/trans.png)
[英]python bokeh plotting package does not cache plots in jupyter notebook
[英]Python can i present bokeh plotting outside jupyter notebook?
我一直在使用散景在地图上使用散景绘制数据。
有没有办法在 jupyter notebook 之外使用这个库?
类似于 Pychram 并将绘图保存到 HTML 文件。
Bokeh 可以使用file_html()
函数为 Bokeh 文档生成完整的 HTML 页面。 您可以参考嵌入图和应用程序以获取更多详细信息。
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")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.