posit-dev / py-shinywidgets

Render ipywidgets inside a PyShiny app
MIT License
41 stars 2 forks source link

Disappearing WebGL Contexts #147

Open bhahn-bhs opened 3 weeks ago

bhahn-bhs commented 3 weeks ago

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?