Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building the plotly extensions breaks JupyterLab #1686

Closed
sursu opened this issue Jul 24, 2019 · 10 comments
Closed

Building the plotly extensions breaks JupyterLab #1686

sursu opened this issue Jul 24, 2019 · 10 comments

Comments

@sursu
Copy link
Contributor

sursu commented Jul 24, 2019

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.

@jonmmease
Copy link
Contributor

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.

@sursu
Copy link
Contributor Author

sursu commented Jul 25, 2019

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

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

  • plotlywidget@1.0.0
  • jupyterlab-plotly@1.0.0

(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

@sursu
Copy link
Contributor Author

sursu commented Jul 31, 2019

@jonmmease can you replicate this?

@janjagusch
Copy link

janjagusch commented Aug 1, 2019

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!

@sursu
Copy link
Contributor Author

sursu commented Aug 1, 2019

Thank you, that solved it!

For posterity, here is how uninstalling is done:

jupyter labextension uninstall @jupyterlab/plotly-extension

@sursu sursu closed this as completed Aug 1, 2019
@dymodi
Copy link

dymodi commented Mar 12, 2020

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

@nicolaskruchten
Copy link
Member

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

@amandhaliwal88
Copy link

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

@cpoptic
Copy link

cpoptic commented May 21, 2020

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

@lanreogun
Copy link

took me a few hours to find this thread. worked perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants