Blank plot in Jupyter Lab
See original GitHub issueThis gives blank output in Jupyter Lab running this simple example:
import plotly.graph_objects as go
fig = go.Figure()
fig.add_trace(go.Scatter(y=[2, 1, 4, 3]))
fig.add_trace(go.Bar(y=[1, 4, 3, 2]))
fig.update_layout(title = 'Hello Figure')
fig.show()
I am running node v12.17.0 and python 3.8.2. and conda 4.8.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Plotly gives an empty field as output in jupyter lab
To properly display the plotly offline graphs in JupyterLab,. Step 1: We need to first install the plotly-extension for JupyterLab:
Read more >Blank figure in jupyterlab - Plotly Community Forum
I tried to run a simple plotly example code in a jupyterlab and I keep getting a blank object. import plotly.graph_objects as go...
Read more >fix blank plot when using plotly in jupyter lab - Chadrick's Blog
while using vscode, I noticed that pylance wasn't running even after forcing pylance server restart. I checked the output logs and it was...
Read more >Unable to display plotly figures output - JupyterLab
I am working on Jupyterlab on a docker container, on an EC2 machine on AWS, ... When rendering plotly figures, I get an...
Read more >Display Troubleshooting — Altair 4.2.0 documentation
A similar blank chart results if you refer to a field that does not exist in ... If you are using JupyterLab (not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If it helps someone, but I’ve always used
import plotly.io as pio
pio.renderers.default = "iframe"
when plotly plots don’t show up in jupyter notebook/lab.
I’m still having this exact same problem on Windows with JupyterLab. Plotly Python package version is ‘4.8.1’, and so are the lab extensions (as installed with the version set to 4.8.1 as per the documentation). But if I launch a classic notebook, the same notebook file shows the plots. If I look at the console when inside a JupyterLab template, I get the error
But Plotly with JupyterLab on Mac doesn’t give me this problem…