jupyter-forward icon indicating copy to clipboard operation
jupyter-forward copied to clipboard

Detect shutdown and exit cleanly

Open mnlevy1981 opened this issue 4 years ago • 0 comments

If I run jupyter lab locally from a terminal then jupyter runs while I do whatever I need to do in the web browser. If I finish using the jupyter kernel and select File... Shutdown from the jupyter web menu, then that kills the local jupyter and I can go back to using my terminal.

If I have launched the lab via jupyter-forward, however, the script faithfully reports that the kernel has shutdown

[I 16:06:39.281 LabApp] Shutting down on /api/shutdown request.
[I 16:06:39.285 LabApp] Shutting down 0 kernels
[I 16:06:39.285 LabApp] Shutting down 0 terminals

but I still need to ^C my way out of the script itself. Perhaps we can figure out some reasonable criteria for jupyter-forward to exit cleanly?

mnlevy1981 avatar Feb 24 '21 23:02 mnlevy1981