question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plotly charts fail to load with a message about WebGL is not supported

See original GitHub issue

Applies 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: image

The following fails:

import plotly.express as px
import numpy as np

px.line(y=np.linspace(0, 1, 1_001)) # 1000 + 1

Result: image

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:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Sep 19, 2022

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.

0reactions
nikhilwoodruffcommented, Dec 4, 2022

Oh thanks @DonJayamanne - I actually haven’t reproduced this issue recently anyway. Thanks for the help though!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found