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.

Bokeh jupyter extension won't load for bokeh v2.0

See original GitHub issue

ALL software version info

$ conda list                                                                                                                                                                                                                                                                                         (holoviews)
# packages in environment at /home/noahb/miniconda3/envs/holoviews:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main    defaults
attrs                     19.3.0                     py_0    defaults
backcall                  0.1.0                    py37_0    defaults
blas                      1.0                         mkl    defaults
bleach                    3.1.0                    py37_0    defaults
bokeh                     2.0.0                    py37_0    defaults
ca-certificates           2020.1.1                      0    defaults
certifi                   2019.11.28               py37_0    defaults
cycler                    0.10.0                   py37_0    defaults
dbus                      1.13.12              h746ee38_0    defaults
decorator                 4.4.2                      py_0    defaults
defusedxml                0.6.0                      py_0    defaults
entrypoints               0.3                      py37_0    defaults
expat                     2.2.6                he6710b0_0    defaults
fontconfig                2.13.0               h9420a91_0    defaults
freetype                  2.9.1                h8a8886c_1    defaults
glib                      2.63.1               h5a9c865_0    defaults
gmp                       6.1.2                h6c8ec71_1    defaults
gst-plugins-base          1.14.0               hbbd80ab_1    defaults
gstreamer                 1.14.0               hb453b48_1    defaults
holoviews                 1.12.7                     py_0    defaults
icu                       58.2                 h9c2bf20_1    defaults
importlib_metadata        1.5.0                    py37_0    defaults
intel-openmp              2020.0                      166    defaults
ipykernel                 5.1.4            py37h39e3cac_0    defaults
ipython                   7.13.0           py37h5ca1d4c_0    defaults
ipython_genutils          0.2.0                    py37_0    defaults
jedi                      0.16.0                   py37_0    defaults
jinja2                    2.11.1                     py_0    defaults
jpeg                      9b                   h024ee3a_2    defaults
json5                     0.9.1                      py_0    defaults
jsonschema                3.2.0                    py37_0    defaults
jupyter_client            5.3.4                    py37_0    defaults
jupyter_core              4.6.1                    py37_0    defaults
jupyterlab                1.2.6              pyhf63ae98_0    defaults
jupyterlab_server         1.0.6                      py_0    defaults
kiwisolver                1.1.0            py37he6710b0_0    defaults
ld_impl_linux-64          2.33.1               h53a641e_7    defaults
libedit                   3.1.20181209         hc058e9b_0    defaults
libffi                    3.2.1                hd88cf55_4    defaults
libgcc-ng                 9.1.0                hdf63c60_0    defaults
libgfortran-ng            7.3.0                hdf63c60_0    defaults
libpng                    1.6.37               hbc83047_0    defaults
libsodium                 1.0.16               h1bed415_0    defaults
libstdcxx-ng              9.1.0                hdf63c60_0    defaults
libtiff                   4.1.0                h2733197_0    defaults
libuuid                   1.0.3                h1bed415_2    defaults
libxcb                    1.13                 h1bed415_1    defaults
libxml2                   2.9.9                hea5a465_1    defaults
markupsafe                1.1.1            py37h7b6447c_0    defaults
matplotlib                3.1.3                    py37_0    defaults
matplotlib-base           3.1.3            py37hef1b27d_0    defaults
mistune                   0.8.4            py37h7b6447c_0    defaults
mkl                       2020.0                      166    defaults
mkl-service               2.3.0            py37he904b0f_0    defaults
mkl_fft                   1.0.15           py37ha843d7b_0    defaults
mkl_random                1.1.0            py37hd6b4f25_0    defaults
nbconvert                 5.6.1                    py37_0    defaults
nbformat                  5.0.4                      py_0    defaults
ncurses                   6.2                  he6710b0_0    defaults
notebook                  6.0.3                    py37_0    defaults
numpy                     1.18.1           py37h4f9e942_0    defaults
numpy-base                1.18.1           py37hde5b4d6_1    defaults
olefile                   0.46                     py37_0    defaults
openssl                   1.1.1d               h7b6447c_4    defaults
packaging                 20.3                       py_0    defaults
pandoc                    2.2.3.2                       0    defaults
pandocfilters             1.4.2                    py37_1    defaults
param                     1.9.3                      py_0    defaults
parso                     0.6.1                      py_0    defaults
pcre                      8.43                 he6710b0_0    defaults
pexpect                   4.8.0                    py37_0    defaults
pickleshare               0.7.5                    py37_0    defaults
pillow                    7.0.0            py37hb39fc2d_0    defaults
pip                       20.0.2                   py37_1    defaults
prometheus_client         0.7.1                      py_0    defaults
prompt_toolkit            3.0.3                      py_0    defaults
ptyprocess                0.6.0                    py37_0    defaults
pygments                  2.5.2                      py_0    defaults
pyparsing                 2.4.6                      py_0    defaults
pyqt                      5.9.2            py37h05f1152_2    defaults
pyrsistent                0.15.7           py37h7b6447c_0    defaults
python                    3.7.6                h0371630_2    defaults
python-dateutil           2.8.1                      py_0    defaults
pyviz_comms               0.7.3                      py_0    defaults
pyyaml                    5.3              py37h7b6447c_0    defaults
pyzmq                     18.1.1           py37he6710b0_0    defaults
qt                        5.9.7                h5867ecd_1    defaults
readline                  7.0                  h7b6447c_5    defaults
send2trash                1.5.0                    py37_0    defaults
setuptools                46.0.0                   py37_0    defaults
sip                       4.19.8           py37hf484d3e_0    defaults
six                       1.14.0                   py37_0    defaults
sqlite                    3.31.1               h7b6447c_0    defaults
terminado                 0.8.3                    py37_0    defaults
testpath                  0.4.4                      py_0    defaults
tk                        8.6.8                hbc83047_0    defaults
tornado                   6.0.4            py37h7b6447c_1    defaults
traitlets                 4.3.3                    py37_0    defaults
typing_extensions         3.7.4.1                  py37_0    defaults
wcwidth                   0.1.8                      py_0    defaults
webencodings              0.5.1                    py37_1    defaults
wheel                     0.34.2                   py37_0    defaults
xz                        5.2.4                h14c3975_4    defaults
yaml                      0.1.7                had09818_2    defaults
zeromq                    4.3.1                he6710b0_3    defaults
zipp                      2.2.0                      py_0    defaults
zlib                      1.2.11               h7b6447c_3    defaults
zstd                      1.3.7                h0b5b093_0    defaults

Description of expected behavior and the observed behavior

Loading the bokeh extension in a notebook fails for bokeh version 2.0, which is now the default version for a clean conda installation. I installed the environment with the command

conda create -n holoviews python=3.7 holoviews jupyterlab

Complete, minimal, self-contained example code that reproduces the issue

import holoviews as hv
hv.extension('bokeh')

Stack traceback and/or browser JavaScript console output

WARNING:param.notebook_extension: Holoviews bokeh extension could not be imported, it raised the following exception: ModuleNotFoundError('No module named 'bokeh.plotting.helpers'')

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-64cfa693de1a> in <module>
----> 1 hv.extension('bokeh')

~/miniconda3/envs/holoviews/lib/python3.7/site-packages/param/parameterized.py in __new__(class_, *args, **params)
   2810         inst = class_.instance()
   2811         inst.param._set_name(class_.__name__)
-> 2812         return inst.__call__(*args,**params)
   2813 
   2814     def __call__(self,*args,**kw):

~/miniconda3/envs/holoviews/lib/python3.7/site-packages/holoviews/ipython/__init__.py in __call__(self, *args, **params)
    114 
    115     def __call__(self, *args, **params):
--> 116         super(notebook_extension, self).__call__(*args, **params)
    117         # Abort if IPython not found
    118         try:

~/miniconda3/envs/holoviews/lib/python3.7/site-packages/holoviews/util/__init__.py in __call__(self, *args, **params)
    708 
    709         if selected_backend is None:
--> 710             raise ImportError('None of the backends could be imported')
    711         Store.set_current_backend(selected_backend)
    712 

ImportError: None of the backends could be imported

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
philippjfrcommented, Mar 17, 2020

I’ve already closed a few of these issues since this has been fixed on master but I’ll keep it open so we don’t get more issues like this. To be clear the only release blockers right now are:

  • Fixing the doc builds
  • Adding release notes
2reactions
philippjfrcommented, Mar 16, 2020

I desperately need to get the HoloViews 1.13.0 out in the coming days. Almost back home after escaping Spain due to COVID19 so there’s a decent chance self-quarantine will speed it up. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using with Jupyter — Bokeh 2.0.0 Documentation
To display Bokeh plots inline in a classic Jupyter notebooks, ... If this cell type is marked “skip” then BokehJS will not be...
Read more >
bokeh not showing in jupyter notebook - Stack Overflow
I get the "BokehJS 0.12.10 successfully loaded." message, but not plot. Note that it outputs html files ok. I've tried changing the environment ......
Read more >
jupyter-bokeh - PyPI
A Jupyter extension for rendering Bokeh content.
Read more >
Releases — Panel v0.14.2
Do not dispatch events if bokeh Document is set to hold events (#4178) ... Ensure extensions loaded in jupyter kernel are served by...
Read more >
Bokeh not displaying graph - Problems and bugs
But my problem is that I do a graph ( a boxplot ) with the extension Bokeh in Holoviews, it seems to work...
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