Fix behavior of the console in response to Ctrl-C #295
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The proposed changes are fixing the issue with processing SIGINT when Ctrl-C is pressed to interrupt a running cell. The new fixed behavior is consistent with
jupyter-qtconsole
.Behavior before the fix
The task is not stopped, so the next command fails:
Unresponsive until the execution of the original command is complete (20 seconds).
(The kernel keeps executing the cell, the console needs to be restarted to continue normal operation).
Behavior After the Fix
( The running cell is immediately stopped and the console is ready for the next command)
(The running cell can not be stopped by design, the console displays normal message and continues to work normally after the cell execution is complete)