J-M
SSolara
•Created by J-M on 5/8/2024 in #questions-issues
Reusing ipywidget composite UI in solara
THanks @MaartenBreddels and apologies for the belated reply. if by global widget you mean a static variable (class variable) I don't think so. I worked around this, perhaps for the better anyway. I'll see if I can make the time this month to write one or more blog posts on solara and give links.
6 replies
SSolara
•Created by J-M on 5/8/2024 in #questions-issues
Reusing ipywidget composite UI in solara
Thank you @Iisakki Rotko . I think I can get by trying to use every ipywidgets one by one, using
.element
. I do not understand the widget lifecycle (python and JS sides) enough to understand why it is reported as closed. I thought the use of a global variable _simui = ui
to hold an indirect reference to all ipywidget
instances via ui
would prevent garbage collection (if this is a synonym of "closed") and keep widgets "alive".6 replies
SSolara
•Created by J-M on 5/8/2024 in #questions-issues
Reusing ipywidget composite UI in solara
I am doing something wrong using
display
on a ipw VBox, perhaps. Any insight would be welcome.
6 replies