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
Can not stop "ipython kernel" on windows #2049
Comments
Not windows specific, and also not so much a bug as an annoying feature. If we allowed sigint to terminate a kernel, then interrupting it from the notebook or qtconsole would occasionally appear as a crash. |
I am not sure if this is the same problem I have. I started a kernel with IPython.embed_kernel(), and I cannot kill it. I'm using linux and ctrl + c does not work. |
^C should not terminate the process, because ^C must be interpreted as a regular sigint and raise KeyboardInterrupt in user code. We don't want ^C to kill the kernel, because then if a user tries to interrupt their own code, the kernel will die. We used to allow ^C to kill the kernel while user code was not running, but this still allowed accidental kernel shutdown if you tried to interrupt your own code, but ended up sending the signal after your code finished. The only sensible answer is for kernels to not be killed by ^C. We could, however, change the |
Is the only way to kill |
@pydave or ask it to shutdown from a frontend. |
arg! i just spent a half hour trying to figure out where i should make some changes to make this work... :\ |
@minrk I've tried my best to google but can't seem to find it. How do you ask it to shutdown from a frontend? |
If it's a terminal client, you can type |
@minrk thanks for the explanation. However now that you have shown why ctrl-c does not work, how do I stop the script? |
Ok! My bad. I just found out because I had set 'debug = True' it was reloading my script continuously, that's why I wasn't able to stop it. Ctrl-c worked for me, on the regular console |
I'm having an issue connecting to an existing kernel on a remote server while using spyder on my local machine. I am running spyder 3.3.6, I have installed miniconda and spyder-kernels on the remote server. I launch Then on my local machine running spyder, I go the "gear" tab in the iPython console and click "connect to an existing kernel". I check the "This is a remote kernel (VIA SSH)" Where am I going wrong? Thank you in advance for your help!!!!!!! |
This comment was marked as off-topic.
This comment was marked as off-topic.
@Ambuj-Choudha this is a thread from 10 years ago, and it's unrelated to your issue. Please create a new issue in appropriate tracker from Jupyter org or in ipykernel |
when running the "ipython kernel" command on windows I can not stop the kernel process. Ctrl-c does not stop the process like it does when using "ipython notebook". I have to kill the process manually using the process explorer.
The text was updated successfully, but these errors were encountered: