Can I autosave a running jupyter python notebook without having it open in a browser tab? -
so have long-running python notebook.
as long it's open in browser's tab, it's autosaving every 2 minutes, , life good.
is possible keep auto-saving if close browser tab?
the kernel keeps running when close tab, great.
this kind of "screen", in jupyter
edit: if leave tab open in browser, noticed after 24 hours, "kernel status" in top right becomes "disconnected", though running cell still has output being piped server websocket connection
no, can't (for now), , no point in doing it. reason is, close tab, critical information lost because in memory of javascript vm run page.
any update sent kernel after you've closed page lost.for example try following.
- create cell
sleep(10);print('hello')
- execute cell
- quickly close , reopen tab.
- the "hello" never printed.
the mapping between "execution request" , "execution reply" have been lost, , can't recovered.
the jupyter team aware of that. fixes not hard, require lot of careful refactor , api design. there long in person discussion in nyc @ end of august 2017. right focus polish jupyterlab, , once done 1 of area of focus. go hand in hand real-time collaboration.
in more detail, fix requires "move" notebook model client (your browser) server side (what serverside handwaved now, here not place expand it), there technical questions that, widgets, , when collaborating state shared , state per-client. if fold code, should stored ? or not ?
if interested in that, suggest getting involved jupyterlab, there number of low hanging fruits contribute should fix 80% of usecases.
Comments
Post a Comment