Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store widgets state to handle restore #39

Merged
merged 6 commits into from
Apr 19, 2020
Merged

Store widgets state to handle restore #39

merged 6 commits into from
Apr 19, 2020

Conversation

jtpio
Copy link
Owner

@jtpio jtpio commented Apr 18, 2020

Partial fix for #8.

restore-widgets

Handle a simple restore by storing the Lumino widgets in the state of the Jupyter widget, and re-adding them to the shell on initialize.

The restore process might not be optimal yet:

  • interactions with the dock panel like are not persisted (only if the widget is removed)
  • the source notebook still needs to be opened to restore the associated widgets

But at least it (partially) restores some of it (best effort) as part of the Jupyter widget state restoration.

Commands and palette are now also restored using the same approach (storing them in the widget state).

@jtpio jtpio marked this pull request as ready for review April 19, 2020 20:09
@jtpio jtpio merged commit a499e9e into master Apr 19, 2020
@jtpio jtpio deleted the widgets-state branch April 19, 2020 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant