Hi,

I implemented "capturing all output even with no browser" for the
CoCalc rewrite of Jupyter.  If you try Jupyter notebooks at
https://cocalc.com, or using the cocalc-docker image
(https://github.com/sagemathinc/cocalc-docker), you can see what this
feels like.  It works by storing all state on the backend server.

Jason Grout, Chris Colbert, and I talked recently at JupyterCon about
some about plans for JupyterLab (?) to implement functionality like
this, so I think something is in the pipeline.  Maybe one of them
wants to comment.

One other workaround is just to send all output to a file by
explicitly using open and write and flush in Python (or whatever
kernel you are using).

 -- William

On Thu, Sep 13, 2018 at 9:53 AM, Matthew Seal <[email protected]> wrote:
> One way I combat this for really long running notebooks is to run it with
> Papermill on the server in a screen session and come back to it in the
> morning. You can also use `--log-output` if you want the execution logs
> piped to a stream or file as well. Not perfect for all situations, but it
> solves the run a notebook and check back later problem.
>
> - Matt
>
> On Thu, Sep 13, 2018 at 4:32 AM Alexey Goloviznin <[email protected]>
> wrote:
>>
>> Hi, any news therer?
>>
>> суббота, 11 июля 2015 г., 3:03:25 UTC+3 пользователь Brian Cheung написал:
>>>
>>> Hi,
>>>   Is there a way to restore the output of a notebook after a disconnect?
>>> I usually leave computations running on a server and disconnect/suspend my
>>> laptop. Unfortunately, when I go to reconnect to the notebook I lose the
>>> realtime output that was printing while I was disconnected. Furthermore, it
>>> no longer prints new outputs. Is there a workaround for this issue? Printing
>>> to a file kind of defeats much of the reason to use the notebook in the
>>> first place.
>>>
>>> -Brian
>>>
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jupyter/138010d9-5d9c-484e-b5b0-f47fdece4b14%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/CAJF6vz5Xrp4y-GEabhuFD8XVNq4aNCH2Eoq%2BcwsSBxzLH36a0g%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CACLE5GAR02Qzu-HN2VZ%3DJBoefhpgAwu18ixW2ZnV1itQ87rMHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to