Skip to content

Cannot show the figure in jupyterlab #2918

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

Open
wangfan860 opened this issue Nov 20, 2020 · 5 comments
Open

Cannot show the figure in jupyterlab #2918

wangfan860 opened this issue Nov 20, 2020 · 5 comments
Labels
bug something broken P3 backlog

Comments

@wangfan860
Copy link

I have a similar issue like #2505

Plotly renders a blank field in jupyterlab. I have matched version of python Plotly and jupyterlab-plotly, but I still can't see the figure. Any ideas? thanks so much!
image

@nicolaskruchten
Copy link
Contributor

I've just added a bunch of extra info in https://plotly.com/python/troubleshooting/ so if you could take another look there to see if there's a fix for your situation, that would be great!

Specifically, it's possible that your kernel's environment has the extension installed but not your actual running JupyterLab instance, so you may want to check that the extension is installed via the JupyterLab UI itself: https://jupyterlab.readthedocs.io/en/stable/user/extensions.html#using-the-extension-manager

@leo-smi
Copy link

leo-smi commented Nov 22, 2020

I'm using jupyterlab 2.2.9 and plotly 4.12 and it is working fine, try to update jupyterlab and plotly:

pip install --upgrade jupyterlab
pip install --upgrade plotly

@brainlescoder
Copy link

If that doesn't solve your problem use this...

import plotly.offline as iplot
import plotly as py
py.offline.init_notebook_mode(connected = True)

it will show
I think this will definitely solve your problem...

@wangfan860
Copy link
Author

Thanks for your suggestions @brainlescoder 😊However, it doesn't work still. I'm using: import plotly.graph_objects as go and import plotly.express as px, any modifications needed for go and px?

@gabegm
Copy link

gabegm commented Apr 23, 2021

Has anyone found a way to solve this issue?

Tried reinstalling the lab extensions and rebuilding jupyter lab but haven't managed to solve the issue.

Firefox_Screenshot_2021-04-23T15-38-31 635Z

@gvwilson gvwilson self-assigned this Jun 25, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added P3 backlog bug something broken labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

6 participants