Error: HoloViews bokeh backend could not be imported
See original GitHub issueHi, I just tried to run the examples from the blogpost in jupyter lab. But i´m getting an error right at the beginning:
import numpy as np
import xarray as xr
import pandas as pd
import holoviews as hv
import geoviews as gv
import iris
import cartopy
from cartopy import crs
from cartopy import feature as cf
from geoviews import feature as gf
hv.notebook_extension('bokeh','matplotlib')
%output backend='matplotlib'
%opts Feature [projection=crs.Robinson()]
WARNING:root:notebook_extension: HoloViews bokeh backend could not be imported, ensure bokeh is installed.
but i have installed it:
import bokeh
print("bokeh",bokeh.__version__)
print("holoviews",hv.__version__)
print("geoviews",gv.__version__)
bokeh 0.12.10 holoviews 1.8.4-x-gde78cf33a geoviews 1.3.2
any ideas what icould be wrong?
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
How to avoid Bokeh/Holoviews Import Errors (None of the ...
This sounds like you have an old version of bokeh. HoloViews requires at least Bokeh 1.0 and works best with Bokeh >=1.1.
Read more >Source code for holoviews.util
ParameterizedMetaclass): """ Improve error message when running something like: 'hv.opts.Curve()' without a plotting backend. """ def __getattr__(self, ...
Read more >pyviz/pyviz - Gitter
I upgraded Bokeh version 1.2.0 with Holoviews 1.12.3 a new error: ImportError: cannot import name 'GridBox' from 'bokeh.models.
Read more >Unrecognized resources bokeh - HoloViz Discourse
I was using the Holoviews in Jupyter notebook and was everything fine. ... cannot import name 'encode_utf8' from 'bokeh.util.string' ...
Read more >Bokeh backend - Jupyter Notebooks Gallery
import numpy as np import pandas as pd import holoviews as hv. In [ ]:. hv.notebook_extension('bokeh'). We could instead leave the default backend...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As of today,
bokeh
releases include 2.0.0 and 1.4.0; the former did not work for me whilst the latter did.Hi, I just tried to run holoviews with bokeh backend and got the same error, but different import issue. WARNING:root:notebook_extension: Holoviews bokeh extension could not be imported, it raised the following exception: ImportError(‘cannot import name ‘Selection’’).
I installed via pip for both holoviews and bokeh, and am trying to use both in jupyter lab.