Tes*_*r_Y 1 python bokeh holoviews
试图让 Holoviews/bokeh 正常工作,但不幸的是我从一开始就遇到了问题。按照此处的教程进行操作:http://holoviews.org/reference/elements/bokeh/Chord.html
但我一开始就陷入困境。
import pandas as pd
import holoviews as hv
from holoviews import opts, dim
from bokeh.sampledata.les_mis import data
#all above imports run fine, I have ensured that bokeh and holoviews are
#updated (via pip install --upgrade xxx)
#following line produces the error:
hv.extension('bokeh')
Run Code Online (Sandbox Code Playgroud)
我收到的消息是:ImportError: None of the backends can be imported
如果有帮助,当我尝试解决此问题时,我被告知尝试不同的导入:
import holoviews.plotting.bokeh
Run Code Online (Sandbox Code Playgroud)
但这会产生不同的错误:ImportError:无法导入名称“FreehandDrawTool”
因此,我什至无法开始探索散景提供的不同可视化选项。
我尝试使用 Jupyter Notebook 和 Atom。我已经安装了所有依赖项并且也是最新的(matplotlib、pandas 等)谢谢。
这听起来像是您使用的是旧版本的散景。HoloViews 至少需要 Bokeh 1.0,并且在 Bokeh >=1.1 时效果最佳。