Possible Plotly - Jupyterlab issue
janba opened this issue · comments
Hello,
I have raised an issue with Jupyter Lab, but it was pointed out that it might be with this extension. Simply put, when running out of WebGL contexts, Plotly plotting fails (also for a simply minimal example) instead of just recycling old contexts - or maybe it does that and then fails.
It is not clear (to me) whether this is a WebGL & Jupyter Lab issue or a simpler Plotly extension issue, so sorry for cross posting. The precise description is here:
Best
Andreas
It seems that the error:
Javascript Error: null is not an object (evaluating 'scene.container.parentNode.removeChild')
arises when the scene.destroy function in Plotly.js is called:
scene.destroy = function() {
scene.container.parentNode.removeChild(scene.container);
};
So a practical solution is to use the FigureWidget instead of iplot. Since I am guessing this is the way forward, I am closing the issue. I do, however, find the Plotly 3+ documentation a bit lacking, but maybe that is just because I am riding the bleeding edge ;-)