IJulia.jl icon indicating copy to clipboard operation
IJulia.jl copied to clipboard

Julia processes are not automatically shut down on Jupyter server shutdown

Open rgobbel opened this issue 3 years ago • 6 comments

When closing an IJulia notebook, unless you do an explicit "shutdown kernel" command from within the notebook, its associated Julia process continues to run after the Jupyter server has terminated. Verified with Julia 1.5.3 and 1.6.0-beta1, on MacOS Catalina and Ubuntu 20.04.

rgobbel avatar Jan 19 '21 00:01 rgobbel

As @rgobbel reported, I too have this issue on Fedora 32. I am running Julia 1.5.0 and IJulia version 1.23.1. Thanks for the help!

TheCedarPrince avatar Jan 26 '21 18:01 TheCedarPrince

Seems like this issue is related as well to bug #921. Any updates on this @stevengj or @fredrikekre?

TheCedarPrince avatar Jan 26 '21 18:01 TheCedarPrince

Seems like this should be reported to the Jupyter repo, not IJulia?

stevengj avatar Feb 01 '21 19:02 stevengj

Seems like this should be reported to the Jupyter repo, not IJulia?

I thought this was specifically an IJulia problem, but as far as I can tell everything works fine with Jupyter Lab--clean shutdown and no dangling processes whether I use the "Quit" command or just type a ctrl-C.

rgobbel avatar Feb 25 '21 20:02 rgobbel

I encountered similar problems on a linux cluster. A lot of julia process still exist even after complete shut down of Julia and Jupyter-lab. Any updates on this?

ruizhi92 avatar Jun 15 '22 12:06 ruizhi92

same behavior even more "openly visible" if you use jupyter console --kernel=julia (in my case in Ubuntu 20.04 on WSL2) in that case exit() will not even close the typical IJulia input [1]: ... prompt; you can only help yourself via CTRL-Z but a ps command will continue to show you the jupyter-console process, which then not even a kill command will be able to get rid off
That this is most probably a "pure" Julia/IJulia issue could be deduced from the fact, that neither Python nor R kernels show such behavior in jupyter console ...

gwd999 avatar Jun 25 '22 23:06 gwd999