Skip to content

Commit

Permalink
kernel: Publish when interrupt request completes
Browse files Browse the repository at this point in the history
* Publish the kernel is idle after an interrupt request completes.

Fixes #53
  • Loading branch information
n-riesco committed Nov 9, 2015
1 parent 6045350 commit 62cd6d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,5 +405,11 @@ process.on("SIGINT", function() {
if (DEBUG) console.log("KERNEL: Interrupting kernel");

// TODO(NR) Implement kernel interruption
kernel.restart();
kernel.restart(function() {
if (kernel.lastExecuteRequest) {
kernel.lastExecuteRequest.respond(kernel.iopubSocket, 'status', {
execution_state: 'idle'
});
}
});
});

0 comments on commit 62cd6d5

Please sign in to comment.