Plotly.py: Building the plotly extensions breaks JupyterLab

Created on 25 Jul 2019  路  9Comments  路  Source: plotly/plotly.py

Ubuntu 18.04.2
Plotly 4.0.0
JupyterLab 1.0.2

It looks like building the plotly extensions for JupyterLab breaks it (cannot be launched: see here)

Jupyter Notebooks run well.

Most helpful comment

Hi @sursu, what versions of the plotly extensions (jupyterlab-plotly and plotlywidget) do you have installed? Can you provide a reproducible set of steps that create the problem?

The instructions at https://github.com/plotly/plotly.py#jupyterlab-support-python-35 include the supported combination of versions of everything needed to get JupyterLab support working. Also make sure you don't have the legacy @jupyterlab/plotly-extension extension installed.

uninstalling @jupyterlab/plotly-extension solved it for me. thanks!

All 9 comments

Hi @sursu, what versions of the plotly extensions (jupyterlab-plotly and plotlywidget) do you have installed? Can you provide a reproducible set of steps that create the problem?

The instructions at https://github.com/plotly/plotly.py#jupyterlab-support-python-35 include the supported combination of versions of everything needed to get JupyterLab support working. Also make sure you don't have the legacy @jupyterlab/plotly-extension extension installed.

Hi @jonmmease, I have followed the instructions you have mentioned.

If you haven't changed that then the versions should be those:

(Don't know how to check them otherwise)

Reproducible set of steps:

  1. Uninstall plotly and JupyterLab
  2. Install JupyterLab
    As an intermediary step check that the installation works by running jupyter lab in the terminal.
  3. Follow the instructions here: https://github.com/plotly/plotly.py#jupyterlab-support-python-35

@jonmmease can you replicate this?

Hi @sursu, what versions of the plotly extensions (jupyterlab-plotly and plotlywidget) do you have installed? Can you provide a reproducible set of steps that create the problem?

The instructions at https://github.com/plotly/plotly.py#jupyterlab-support-python-35 include the supported combination of versions of everything needed to get JupyterLab support working. Also make sure you don't have the legacy @jupyterlab/plotly-extension extension installed.

uninstalling @jupyterlab/plotly-extension solved it for me. thanks!

Thank you, that solved it!

For posterity, here is how uninstalling is done:

jupyter labextension uninstall @jupyterlab/plotly-extension

so is there any guidance on using plotly-extension with jupyter-lab?

Yes, we have a Troubleshooting guide now: https://plot.ly/python/troubleshooting/ :)

I had the same problem. For some reason after uninstalling the JupyterLab plotly extension it is now working fine.

the old extension plotly-extension has been deprecated and is now replaced with jupyterlab-plotly:

https://www.npmjs.com/package/@jupyterlab/plotly-extension
https://www.npmjs.com/package/jupyterlab-plotly

Use this instead for your Plotly extension install;

jupyter labextension uninstall @jupyterlab/plotly-extension
jupyter labextension install jupyterlab-plotly

Was this page helpful?
0 / 5 - 0 ratings