Handle restore
jtpio opened this issue · comments
Maybe we could use a similar approach as @saulshanabrook did in https://github.com/Quansight-Labs/jupyter-widgets-takeover, instead of relying on the widget's pWidget
.
I spoke too soon, unfortunately...
Issue is we don't save the arguments to restorer.restore(tracker, options)
anywhere so we have no way of re-restoring widgets later :(
It sounds like it should be doable, but would maybe require writing a custom widget manager though.
I got this working with my widgets factory... it's a bit zany though: https://github.com/Quansight-Labs/jupyter-widgets-takeover/blob/a0b2af7245e420297784eb9a4338b8f6e2c8747a/src/workspace.tsx#L60-L90
But it looks functional :)
I guess it would even make sense to be able to remove the chrome in core lab as well.
Ah I see you posted in jupyterlab/jupyterlab#2031 👍
Yeah it's functional haha after many tears...
I think this can be closed, now?