Skip to content

Commit

Permalink
Run startup code on kernel restart
Browse files Browse the repository at this point in the history
 - Closes #1343
  • Loading branch information
BenRussert authored and lgeiger committed Sep 16, 2018
1 parent b31f074 commit 4e2a30e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/zmq-kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export default class ZMQKernel extends KernelTransport {
);
this.kernelProcess = spawn;
this.monitor(() => {
this._executeStartupCode();
if (onRestarted) onRestarted();
});
}
Expand Down

0 comments on commit 4e2a30e

Please sign in to comment.