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.

Installing plotly with ipywigets 7.5 fails to plot in jupyter lab

See original GitHub issue

Hi,

I noticed that if I upgrade to the latest version of ipywidgets==7.5 this breaks FigureWidget in my jupyter lab notebook (in offline mode).

The part of my docker file that install plotly looks like this:

RUN pip install plotly==3.10.0 jupyterlab==0.35 ipywidgets==7.5 psutil

# Install Jupyter Lab Extensions
# ------------------------------------------------------------------------------
RUN export NODE_OPTIONS=--max-old-space-size=4096 \
    && jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.38 --no-build \
    && jupyter labextension install plotlywidget@0.11.0 --no-build \
    && jupyter labextension install @jupyterlab/plotly-extension@0.18.2 --no-build \
    && jupyter lab build

I get the “Error displaying widget” message. Looking in the console gives me this error:

Uncaught (in promise) Module @jupyter-widgets/base, semver range ^1.2.0 is not registered as a widget module
vendors~main.dfdb0f7451aa8d94f759.js:460982 Error displaying widget
vendors~main.dfdb0f7451aa8d94f759.js:460983 Module @jupyter-widgets/base, semver range ^1.2.0 is not registered as a widget module

If I revert back to 7.4 then the error goes away. I only noticed this because I originally had my ipywidgets install line set to "ipywidgets>=7.2" which is what the plotly.py install instructions recommend.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jonmmeasecommented, Jul 17, 2019

Hi all, yesterday we released version 4.0.0 of the plotly package which has support for ipywidgets 7.5 when used with JupyterLab 1.0. See https://plot.ly/python/getting-started/ for installation instructions. Thanks!

1reaction
jonmmeasecommented, Jul 8, 2019

Hi @samueljackson92,

For ipywidgets 7.5 I think you’ll need @jupyter-widgets/jupyterlab-manager@1.0.0. We’ll be publishing a release candidate for plotly.py version 4 soon, and that will include instructions for JupyterLab 1.0 and ipywidgets 7.5. Stay tuned.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with using Plotly and FigureWidget in JupyterLab
A few months ago, I built a Docker image to allow me to run experiments with JupyterLab and Plotly. I use FigureWidgets extensibly...
Read more >
Issue with Plotly
For use in JupyterLab, install the jupyterlab and ipywidgets packages using pip... pip install jupyterlab "ipywidgets==7.5". or conda. conda ...
Read more >
Plotly
Plotly graphs can be viewed in Jupyter notebooks, standalone HTML files, ... For use in JupyterLab, install the jupyterlab and ipywidgets packages using...
Read more >
install ipywidgets - Read the Docs
No information is available for this page.
Read more >
5 Extensions That Will Make You Switch to Jupyter Lab
Extension 2: Interactive Graphs with Plotly and Chart Editor ... conda install jupyterlab "ipywidgets>=7.5"# pip pip install jupyterlab ...
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