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.

No longer able to load BokehJS in jupyter notebook

See original GitHub issue

I use bokeh to render plots in my jupyter notebook. As of this morning, the BokehJS extension is not loading anymore in my notebooks. bokeh_bug import bokeh.io bokeh.io.output_notebook() prints “Loading BokehJS …” as usual, but then does not move to the “BokekJS sucessfully loaded” expected. Trying to plot anything then results to nothing.

Jupyter local server console logs are : [I 13:03:06.046 NotebookApp] Loaded extension jupyter_nbextensions_configurator [I 13:03:06.048 NotebookApp] Serving notebooks from local directory: /home/sdg/Programmation [I 13:03:06.048 NotebookApp] 0 active kernels [I 13:03:06.049 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/ [I 13:03:06.049 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [W 13:03:25.831 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20161014130305 (127.0.0.1) 6.30ms referer=http://localhost:8888/notebooks/librariesWKdatascience/projects/scores/Untitled.ipynb [I 13:03:26.459 NotebookApp] Kernel started: 5d4b17a3-9612-4f4b-b886-bafbfc72f9ab [I 13:05:26.322 NotebookApp] Saving file at /librariesWKdatascience/projects/scores/Untitled.ipynb [I 13:06:18.058 NotebookApp] Kernel restarted: 5d4b17a3-9612-4f4b-b886-bafbfc72f9ab [I 13:06:41.664 NotebookApp] Kernel restarted: 5d4b17a3-9612-4f4b-b886-bafbfc72f9ab [I 13:07:26.345 NotebookApp] Saving file at /librariesWKdatascience/projects/scores/Untitled.ipynb

Both bokeh and jupyter notebook have been reinstalled and upgraded to lastest versions. I’ve tried on Mozilla Firefox (49.0) and Chromium (53.0.2785.143), including in private navigation to exclude caches problems.

I use a vex virtual env with pip, here’s the result of pip freeze : azure-common==1.1.4 azure-nspkg==1.0.0 azure-storage==0.32.0 backports.shutil-get-terminal-size==1.0.0 bokeh==0.12.3 branca==0.1.1 Cython==0.24 dateutils==0.6.6 decorator==4.0.10 docopt==0.6.2 entrypoints==0.2.2 folium==0.2.1 influxdb==3.0.0 ipykernel==4.5.0 ipython==5.1.0 ipython-genutils==0.1.0 ipywidgets==5.2.2 Jinja2==2.8 jsonschema==2.5.1 jupyter==1.0.0 jupyter-client==4.4.0 jupyter-console==5.0.0 jupyter-contrib-core==0.3.0 jupyter-contrib-nbextensions==0.2.0 jupyter-core==4.2.0 jupyter-nbextensions-configurator==0.2.2 lxml==3.6.1 MarkupSafe==0.23 mistune==0.7.3 nbconvert==4.2.0 nbformat==4.1.0 nbgen==0.1.2 neo4jrestclient==2.1.1 notebook==4.2.3 numexpr==2.6.1 numpy==1.11.2 pandas==0.18.1 pexpect==4.2.1 pickleshare==0.7.4 pkgconfig==1.1.0 prompt-toolkit==1.0.7 psutil==4.3.1 ptyprocess==0.5.1 py==1.4.31 pygal==2.2.3 Pygments==2.1.3 pytest==2.9.2 python-dateutil==2.5.3 pytz==2016.6.1 PyYAML==3.12 pyzmq==16.0.0 qtconsole==4.2.1 requests==2.11.1 scikit-learn==0.17.1 scipy==0.17.1 simplegeneric==0.8.1 six==1.10.0 sklearn==0.0 tables==3.2.3.1 terminado==0.6 tornado==4.4.2 traitlets==4.3.1 ujson==1.35 wcwidth==0.1.7 widgetsnbextension==1.2.6

The OS is Ubuntu 16.04.1 LTS.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

24reactions
ewjoachimcommented, Oct 14, 2016

Just so you or someone finding this issue knows :

from bokeh.resources import INLINE
import bokeh.io
bokeh.io.output_notebook(INLINE) 

This will not use the CDN, so in case there’s a problem in the future and while it’s not solved, this will work.

Link

1reaction
shr00miecommented, Apr 29, 2018

@ewjoachim: dude. i spent like…3 days trying to figure out wtf is wrong and your inline code is…literally the ONLY mention i’ve seen on Hydrogen, jupyterlab, or bokeh githubs/forums/mailgroups let alone any of the bokeh documentation.

people need to update their shit.

p.s. love you long time. gonna go try on remote kernel and see if that works as well.

p.p.s. yup. confirmed working on remote kernel as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bokeh plot not showing in Jupyter. Only says "Loading ...
Bokeh plots rely on a JavaScript library, BokehJS. By default (and by popular demand) BokehJS is loaded remotely from a CDN (specifically, ...
Read more >
No longer able to load BokehJS in jupyter notebook (Firefox 57)
I tried opening the notebook on chrome and it works. I have attached the screenshot. I am running the notebook in a separate...
Read more >
Jupyter notebook - Caltech
If loading BokehJS from CDN, this \\n\"+\n \"may be due to a slow or bad network ... Bokeh in Jupyter notebooks allows for...
Read more >
Bokeh, Bokehjs, and Observablehq. A venture out of Jupyter's ...
This design means that Observable notebooks support a high degree of interactivity in a natural way far beyond the ability of jupyter notebooks....
Read more >
Overview — Panel v0.14.2
The Panel extension loads BokehJS, any custom models required, and optionally additional custom JS and CSS in Jupyter notebook environments.
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