Skip to content
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

Julia processes are not automatically shut down on Jupyter server shutdown #977

Open
rgobbel opened this issue Jan 19, 2021 · 6 comments
Open

Comments

@rgobbel
Copy link
Contributor

rgobbel commented Jan 19, 2021

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.

@TheCedarPrince
Copy link
Member

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
Copy link
Member

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

@stevengj
Copy link
Member

stevengj commented Feb 1, 2021

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

@rgobbel
Copy link
Contributor Author

rgobbel commented Feb 25, 2021

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.

@ruizhi92
Copy link

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?

@gwd999
Copy link

gwd999 commented Jun 25, 2022

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants