【发布时间】:2016-11-01 14:17:58
【问题描述】:
我有以下代码在带有 python 3 的 jupyter notebook 中运行:
from bokeh import mpl
from bokeh.plotting import figure, show, output_notebook
import matplotlib.pyplot as plt
output_notebook()
plt.hist([1,2,3,3,3,3,4,5,4])
show(mpl.to_bokeh())
【问题讨论】:
-
浏览器控制台有输出吗?
-
嗨! , 我添加了一张图片
-
我应该更清楚。如果您可以共享浏览器控制台的输出(在 Chrome 中是设置 -> 更多工具 -> 开发人员工具),这将有助于诊断。
-
这已经不可能了。自 Bokeh 12.5(2017 年 4 月)以来,support for Matplotlib has been deprecated 和
mpl.to_bokeh()已被删除。另请参阅 bryevdv 的 this Github comment。
标签: python-3.x matplotlib plot bokeh jupyter-notebook