I am plotting 10 graphs on the same page. Each plot is created with Plotly.newplot then updated with plotly.react.
I found that each time I open my application in 3 tabs simultaneously, some plots dissapear and I get this error in my console:
Warning Too many active WebGL contexts. Oldest context will be lost
In plotly express some plots have a render_mode function which you can change to “svg”, it generates plots much slower but it will stop older ones disappearing. I did this after generating lots of px.scatter plots and it worked ok. More info here: Webgl vs svg in Python