Plotly charts fail to load with a message about WebGL is not supported
See original GitHub issueApplies To
- Notebooks (.ipynb files)
- Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
I tried to display a Plotly chart in a Jupyter notebook. After some debugging, I’ve managed to narrow down the issue. The following works perfectly:
import plotly.express as px
import numpy as np
px.line(y=np.linspace(0, 1, 1_000))
Result:
The following fails:
import plotly.express as px
import numpy as np
px.line(y=np.linspace(0, 1, 1_001)) # 1000 + 1
Result:
VS Code Version
1.71.2
Jupyter Extension Version
v2022.8.1002431955
Jupyter logs
N/A
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
WebGL is not supported (even though its enabled)
Hi. I am trying to use plot.ly to create an interactive 3d graph. The entire document is here. However, in my local notebook...
Read more >Plotly error "WebGL is not supported by your browser"
In RStudio, I went to [Tools/Global Options.../Advanced] and choosing 'Desktop OpenGL' in Rendering engine. Source: community.rstudio.com: WebGL is not supported ...
Read more >Python Plotly Error - WebGL is not supported by your browser
Hello guys im trying to plot a 3d surface graph with the python tool, Please help me trouble shoot why? is it a...
Read more >WebGL is not supported by your browser - Plotly - RStudio IDE
If I run the script directly in R, the chart is shown in Safari. I am working in a macOS Sierra, R 3.5....
Read more >Plotly graphs that utilize Webgl are not displayed ... - YouTrack
A simple example form https://plot.ly/python/3d-surface-plots/ is displayed with the message. Webgl is not supported by your browser". Attachments 3.
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 Free
Top 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
FYI - I’ve tried this at my end, and I’m not seeing this behaviour, I’ve tried
1_000_000
and I’m not running into this issue.Oh thanks @DonJayamanne - I actually haven’t reproduced this issue recently anyway. Thanks for the help though!