Issue
I am using a remote kernel on a cluster, which I connect to using Spyder. For this, I start my kernel on the cluster with python -m spyder_kernels.console &
. Then I copy transfer the *.json file that is created in the runtime directory of jupyter to my local computer, then connect through Spyder using the .json file to the kernel on my cluster. This works very well.
When wanting to shut it down again, I issue exit
in the console in spyder, which appears to shut down the kernel (at least in my local Spyder window). However, when I check for processes running on the cluster, multiple processes keep on running on the cluster. So far, I issued SIGTERM to them through htop to stop them.
How do I cleanly shut down the remote kernel so that no processes keep running?
Solution
(Spyder maintainer here) Unfortunately, it's not possible to shutdown nor interrupt remote kernels at the moment (October 2020).
That has to do with some tricky issues with the Jupyter architecture (we use the same architecture as Jupyter to run code) that we've been unable to sort out, sorry.
Answered By - Carlos Cordoba
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.