Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

handle exit in `ipython console`

  • Loading branch information...
commit 120538295ebbc0b777c0edc07cfc979ccce2dafb 1 parent 64d52d5
@minrk minrk authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 IPython/frontend/terminal/console/interactiveshell.py
View
4 IPython/frontend/terminal/console/interactiveshell.py
@@ -82,6 +82,10 @@ def run_cell(self, cell, store_history=True):
if (not cell) or cell.isspace():
return
+ if cell.strip() == 'exit':
+ # explicitly handle 'exit' command
+ return self.ask_exit()
+
self._executing = True
# flush stale replies, which could have been ignored, due to missed heartbeats
while self.km.shell_channel.msg_ready():
Please sign in to comment.
Something went wrong with that request. Please try again.