Closed dsblank closed 3 years ago
Adding @jtpio to this discussion who might know the answer 😊
For now, it looks like ipylab objects persist. I'll ask over there. Thanks!
Ah I forgot to reply here!
for widget in app.shell.widgets.values():
Normally app.shell.widgets
is not part of the public API yet. Or you meant accessing the "private" _widgets
property?
No, it was app.shell.widgets
but I'll ask some follow up questions over on ipylab.
This may be a question for
ipylab
but it may require some low-level canvas API:I'm trying to make some start-up code that will add a canvas in a panel using ipylab:
where canvas is my ipycanvas canvas.
The problem is that in JupyterLab, the panel is in the app.shell.widgets, but it is no longer "connected" in HTML dom language if the panel has been closed. Is there a way to get to the HTML canvas element "isConnected" via ipywidgets, or ipycanvas, even if the panel has been closed?