2017-10-09 3 views
0

Je travaille avecholoviews/bokeh erreur d'importation

In [2]: bokeh.__version__ 
Out[2]: '0.12.1' 

In [4]: holoviews.__version__ 
Out[4]: 1.8.4 

L'importation suivante

from holoviews.plotting.bokeh import BokehRenderer 

produit une erreur:

--------------------------------------------------------------------------- 
ImportError        Traceback (most recent call last) 
<ipython-input-1-c53ae81a79e0> in <module>() 
----> 1 from holoviews.plotting.bokeh import BokehRenderer 

/usr/local/lib/python3.6/site-packages/holoviews/plotting/bokeh/__init__.py in <module>() 
     2 
     3 import numpy as np 
----> 4 from bokeh.palettes import all_palettes 
     5 
     6 from ...core import (Store, Overlay, NdOverlay, Layout, AdjointLayout, 

ImportError: cannot import name 'all_palettes' 

Il a travaillé auparavant, et je peux » Trace ce qui a changé.

Répondre

4

HoloViews 1.8.4 nécessite une version récente de bokeh avec> = 0.12.6 recommandé. Je vous suggère la mise à niveau avec:

conda install -c bokeh bokeh=0.12.9 

ou

pip install bokeh 
+0

Merci, qui a résolu le problème. Je pensais avoir le bokeh le plus récent après avoir lancé 'pip3 install --upgrade bokeh', mais apparemment une réinstallation était nécessaire. – clstaudt