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
[Feature request] restore "Output view" #5976
Comments
Thanks @defeo, this is a nagging issue that I've been wanting to fix for a while. Unfortunately, the output area clone doesn't work that well with the layout restoration system. It should be possible to figure out, but it's not very natural. It would definitely be nice to be able to rely on this for binder demos. |
@ian-r-rose - a 1.0 issue, or Future? |
Let me take a look this afternoon. Last I checked it wasn't trivial, but maybe I can see a way through... |
I took a look at this: it's a really tricky problem. The cloned output area widgets are not normal widgets to restore: they are irrevocably tied to a particular notebook. This means, for instance, that they cannot be restored until after all the notebooks are restored. Unfortunately, this leads to a cycle of promise resolution that would have to be broken:
The solution is probably to put empty placeholder widgets for cloned output areas and populate them once their notebook is loaded (right now they are populated synchronously), but that requires some reworking of things. I have some initial work here, but it's not functional yet. This is not even touching the problem of out-of-band or unsaved output clones: a cloned output could be of an unsaved or moved cell that is not possible to restore, since it does not exist on the server. That can of worms likely couldn't be solved until we have a server-side data model. Marking as future, unless I feel inspired. |
Okay, I went after this in #5981. The problem of unsaved notebook changes is still there, but this should still work for a lot of use-cases. |
Awesome stuff!
Apropos of cloned outputs: is there something public on them that would
reveal which notebook they are from? I've been dinking around with
son-of-tabs-and-running, and they don't have a session or a context on
them, so I presently draw them under the lonely "no kernel" kernel... But
I'd love to actually nest them under the Notebook that spawned them, as
they can't really be moved into another kernel, unlike a notebook, console,
or general document.
|
There wasn't anything like that before (except in the hover text for the tab). In #5981, however, I added a |
Hello,
This issue popped up while discussing with @fperez. I have an output view on a notebook cell, like this:
The split view is saved in the current workspace, however without enough information to restore the output view. If I reload the page, the output view disappears:
It would be nice if the output view could be restored. I'm especially interested in having this for Binder.
Tested in 1.0.0a1
The text was updated successfully, but these errors were encountered: