jupyterlab_bokeh needs to be included
See original GitHub issueHi there,
I am trying to get bokeh to work with jupyterlab and couldn’t find the right answer… I am working under windows 10 and with other modules I found that using the Jupyter inline commands work best (I am a noobie and run into issues about where stuff gets installed all the time).
The following commands worked without errors (not sure if they are all relevant)
! conda install -y -c cpcloud npm
The following NEW packages will be INSTALLED:
nodejs: 0.10.33-0 cpcloud
npm: 1.4.12-0 cpcloud
[..]
import bokeh; bokeh.__version__
'0.12.13'
!conda list jupyter
# packages in environment at C:\Users\mnb3\AppData\Local\Continuum\anaconda3:
#
jupyter 1.0.0 py36h422fd7e_2
jupyter_client 5.1.0 py36h9902a9a_0
jupyter_console 5.2.0 py36h6d89b47_1
jupyter_core 4.3.0 py36h511e818_0
jupyterlab 0.30.6 py36h047fa9f_0
jupyterlab_launcher 0.6.0 py36_0 conda-forge
But I got errors for
! jupyter labextension list
JupyterLab v0.30.6
Known labextensions:
app dir: C:\Users\mnb3\AppData\Local\Continuum\anaconda3\share\jupyter\lab
jupyterlab_bokeh
jupyterlab_bokeh v0.1.0 enabled ok
Build recommended:
jupyterlab_bokeh needs to be included
==> I guess that is the problem, it seems the wrong version and how do I include it? If I launch a jupyterlab from the anaconda navigator (1.6.10) it cycles through two popup windows:
Build Recommended
JupyterLab build is suggested:
jupyterlab_bokeh needs to be included
cancel build
and
Build Complete
Build successfully completed, reload page?
cancel reload
until I hit either cancel
from bokeh.io import output_notebook, show
from bokeh.plotting import figure
output_notebook()
# create a new plot with default tools, using figure
p = figure(plot_width=400, plot_height=400)
# add a circle renderer with a size, color, and alpha
p.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], size=15, line_color="navy", fill_color="orange", fill_alpha=0.5)
show(p) # show the results
Loading BokehJS ...
JavaScript output is disabled in JupyterLab
JavaScript output is disabled in JupyterLab
(works fine in a Jupyter notebook)
Thanks you for any suggestions…
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Using with Jupyter — Bokeh 2.4.3 Documentation
To use JupyterLab with Bokeh, you should at least use version 3.0 of ... You can also include standalone (i.e. non-server) Bokeh plots...
Read more >jupyter-bokeh
A Jupyter extension for rendering Bokeh content. ... For versions 3.0 and newer of JupyterLab, you have the option to install jupyter_bokeh with...
Read more >Interactive Visualization with Bokeh
Visualization is absolutely essential in data analysis, as it allows you to directly feed your data into a powerful neural network for unsupervised ......
Read more >bokeh/jupyter_bokeh
A Jupyter extension for rendering Bokeh content.. Latest version: 3.0.4, last published: a year ago. Start using @bokeh/jupyter_bokeh in ...
Read more >Bokeh, interactive widgets, and jupyterlab
To use widgets to control matplotlib graphics, we have to understand what are the matplotlib backends. %matplotlib --list.
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
Hi! The missing step is a
jupyter lab build
to pick up the extension. You may need toconda install nodejs
first if you don’t already have node installed.Great. I’ll close this - but if the issue turns out to be an ipywidgets problem, feel free to reopen or open another issue.