-
Notifications
You must be signed in to change notification settings - Fork 294
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
Ctrl+C doesn't break out of an infinite loop while a cell is running. #9874
Comments
Thanks for the bug. What do you have 'CTRL+C' mapped to? 'CTRL+C' by default is mapped to copy so it wouldn't interrupt a cell. Additionally what code are you running? Not all code is interruptable. Depends upon what the implementation of the code is. |
Actually your version of VS code is rather old. You should upgrade to the latest and try your situation again. Please feel free to reopen if you're having trouble interrupting a cell with the latest bits. |
So what should we do when there is infinite loop executed by mistake in VS code |
For me, the interrupt button does not stop an infinite loop and still resorts to restarting the kernel. |
That can happen if the kernel is running native code. In that case there may not be something listening to the messages for the interrupt. It can also depend upon what code you're running. See this issue here: |
Environment data
Expected behaviour
Ctrl+C should break out of an infinite loop while a cell is running.
Actual behaviour
Nothing happens with Ctrl+C. To restart, I have been resorting to restart the entire kernel instead.
Steps to reproduce:
Run an infinite loop in one of the notebook's cell, and try Ctrl+C. The cell will continue running and timeout after awhile.
The text was updated successfully, but these errors were encountered: