-
Notifications
You must be signed in to change notification settings - Fork 963
Open
Labels
Description
Problem
People just want to save a notebook with widgets, and the state should be embedded, they by default should not have to worry about saving the widget state, nor do they want the state of 'stale' (unused) widgets in the notebook output.
Proposed Solution
Similar to what we do on the Python side in
ipywidgets/ipywidgets/embed.py
Line 116 in 671fd0f
| def _get_recursive_state(widget, store=None, drop_defaults=False): |
Maybe there are edge cases where we cannot detect the children, to protect for that we should have a method in WidgetModel to override finding the children, but I think in 99.99% I can find them.
Related #2598
cc @martinRenou
martinRenou, stevejpurves and janfreyberg