Skip to content

Commit

Permalink
Merge pull request #127 from yangle/keepkernel
Browse files Browse the repository at this point in the history
Keep "--existing" kernel alive on Ctrl-D exit
  • Loading branch information
takluyver authored Aug 3, 2017
2 parents 5d9b352 + 1203963 commit 30628ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_console/ptshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def interact(self, display_banner=None):
self.run_cell(code, store_history=True)

def mainloop(self):
self.keepkernel = False
self.keepkernel = not self.own_kernel
# An extra layer of protection in case someone mashing Ctrl-C breaks
# out of our internal code.
while True:
Expand Down

0 comments on commit 30628ca

Please sign in to comment.