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

Disappearing WebGL Contexts #147

Closed
bhahn-bhs opened this issue Jun 7, 2024 · 1 comment
Closed

Disappearing WebGL Contexts #147

bhahn-bhs opened this issue Jun 7, 2024 · 1 comment

Comments

@bhahn-bhs
Copy link

  • shinywidgets version: 0.3.2
  • Python version: 3.12
  • Operating System: Linux (Ubuntu)

Description

I am rendering multiple plotly charts in shiny with output_widget.
Since there is a lot of data in the plots, I use go.scattergl instead of go.scatter to create a plotly plot.
Now I run into the problem that when the charts are rendered too often, I get the following message in the console:

WARNING: Too many active WebGL contexts. Oldest context will be lost.

And when that happens, the contexts of the diagrams will be lost successively.

Is there a solution or workaround to prevent my charts from "disappearing"?
Or is a solution for this already planned?

@cpsievert
Copy link
Collaborator

A reproducible example would be helpful, but I suspect this ultimately would be something that needs to be fixed in plotly.

Also, plotly v6.0 recently came out, so it might be worth checking if that release fixes this problem.

Anyway, I'll be closing here since I don't think shinywidgets is responsible for this, but feel free to open another issue if you can come up with a reproducible example with plotly v6.0

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

2 participants