问题描述
我从下载了适用于Windows 32位的Anaconda安装程序。
在我的谷歌浏览器的IPyNotebook中,我从这里插入代码:
I downloaded the Anaconda installer for Windows 32 bit from http://continuum.io/downloads.In my IPyNotebook in Google Chrome, I inserted code from here: https://github.com/ContinuumIO/bokeh/blob/demo/examples/plotting/server/remotedata.py
Executing in the notebook draws that error:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-376-39dc49ee6c7a> in <module>()
1 import numpy as np
----> 2 from bokeh.transforms.line_downsample import downsample
3
4 from bokeh.sampledata.stocks import AAPL, FB, GOOG, IBM, MSFT
5 from bokeh.plotting import *
ImportError: No module named transforms.line_downsample
Shouldn't be everything delivered with my Anaconda install? How do I get it running?
Also, note that the example you're looking at is actually on a branch, where the downsampling work was being developed. This work is currently (this weekend) being merged into master, and will then be available in a cleaner form off of master.
So, if you want to just play with other bokeh examples, you can use conda
to install the latest bokeh via conda update bokeh
. But if you want to run the above remote data example, you should do a git clone
of that branch, and then follow the instructions in the Bokeh Quickstart to install it: http://bokeh.pydata.org/docs/quickstart.html#quickstart
这篇关于使用Anaconda Distribution,如何使用散景图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!