question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: HoloViews bokeh backend could not be imported

See original GitHub issue

Hi, 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:closed
  • Created 6 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
dycwcommented, Mar 10, 2020

As of today, bokeh releases include 2.0.0 and 1.4.0; the former did not work for me whilst the latter did.

3reactions
junaidahmed361commented, May 2, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found