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.

Jupyterlab 3.x.x support

See original GitHub issue

With a fresh install of Jupyterlab version 3.0.0, installing plotly with the command jupyter labextension install jupyterlab-plotly@4.14.1 yields an error:

An error occured.
ValueError: 
"jupyterlab-plotly@4.14.1" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab                        Extension      Package
>=3.0.0 <3.1.0                    >=1.3.0 <2.0.0||>=2.0.0 <3.0.0@jupyterlab/rendermime-interfaces

Obviously this is a bleeding edge issue and very much a feature request, not a bug, I just wanted to make sure it was documented. Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:33
  • Comments:41 (18 by maintainers)

github_iconTop GitHub Comments

9reactions
nicolaskruchtencommented, Jan 5, 2021

Thanks @jasongrout! We’ll look at getting JupyterLab 3.x support in the next week or so.

5reactions
nabetse00commented, Dec 30, 2020

I’ve tested locally by cloning plotly.py repo and modifying the package.json line 34 to:

"@jupyterlab/rendermime-interfaces": "^1.3.0 || ^2.0.0  || ^3.0.0",

So far so good, no issues.

So steps to try that workaround:

  • install jupyterlab v3 (i recommend conda to do this) and plotly
conda install -c conda-forge jupyterlab
  • install nodejs (i used my local version v12 but >v12 should work too).
  • run jupyter labextension install jupyterlab-plotly@4.14.1 you will get the same error as @bdecato said:
An error occured.
ValueError: 
"jupyterlab-plotly@4.14.1" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab                        Extension      Package
>=3.0.0 <3.1.0                    >=1.3.0 <2.0.0||>=2.0.0 <3.0.0@jupyterlab/rendermime-interfaces
  • clone plotly.py repo in another folder (TMP, EXT whatever … ) and open the correct folder for the extension
mkdir EXT
cd EXT
git clone https://github.com/plotly/plotly.py.git
cd .\plotly.py\packages\javascript\jupyterlab-plotly\
  • modify package.json line 34 to
"@jupyterlab/rendermime-interfaces": "^1.3.0 || ^2.0.0  || ^3.0.0",
  • Build the extension and install; Inside this folder run:
npm instal
npm run build 
jupyter labextension install
  • once it finishes, check the extension list:
jupyter labextension list

returns something like:

JupyterLab v3.0.0
Other labextensions (built into JupyterLab)
   app dir: C:\XXXXXXX\YYYYYY\jupyter\lab
        @jupyter-widgets/jupyterlab-manager v3.0.0 enabled ok
        jupyter-matplotlib v0.7.4 enabled ok
        jupyterlab-plotly v4.14.1 enabled ok*


   local extensions:
        jupyterlab-plotly: C:\XXX\EXT\plotly.py\packages\javascript\jupyterlab-plotly

Ready to test v3 compat !

Read more comments on GitHub >

github_iconTop Results From Across the Web

JupyterLab Changelog — JupyterLab 3.6.0b0 documentation
JupyterLab now supports showing the current file in use in the browser URL bar, similar to the classic Jupyter Notebook. Table of Contents...
Read more >
JupyterLab 3.0 is released - Jupyter Blog
(Note that many third-party extensions are still in the process of updating to be compatible with JupyterLab 3.0 — please check the extensions ......
Read more >
JupyterLab versioning - Amazon SageMaker
JupyterLab 3 support is available only on the Amazon Linux 2 operating system platform. JupyterLab 3 ... Jupyter notebook has been upgraded from...
Read more >
Project Jupyter on Twitter: "The upcoming version 3.x of ...
The upcoming version 3.x of JupyterLab added localization support! We need your help to make it available on your favorite language.
Read more >
Data Access - FAQ - IllustrisTNG Project
JupyterLab is the evolution of the Jupyter Notebook (previously called IPython). ... currently supported: Python 2.x, Python 3.x, IDL, Matlab, R, and Julia....
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