![](/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.