Using Anaconda Distribution, how to use bokeh plotting?

心已入冬 提交于 2019-12-10 17:12:32

问题


Note from maintainers: This question concerns the obsolete first generation Bokeh server. For details about modern Bokeh server applications, see:

https://docs.bokeh.org/en/latest/docs/user_guide/server.html



OBSOLETE:

I downloaded the Anaconda installer for Windows 32 bit from https://www.anaconda.com/distribution/

In my Jupyter Notebook, I inserted code from here:

https://github.com/bokeh/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?


回答1:


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://docs.bokeh.org/docs/quickstart.html#quickstart




回答2:


Have you installed the latest version of Bokeh ? You can update your Anaconda installation using

conda update conda

and then

conda update anaconda



来源:https://stackoverflow.com/questions/22561551/using-anaconda-distribution-how-to-use-bokeh-plotting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!