From 7bae4605357ed84fbe42d3aeabe2893d696c96d3 2014-04-09 23:02:17 From: Min RK Date: 2014-04-09 23:02:17 Subject: [PATCH] Merge pull request #5546 from renaud/master do not shutdown notebook if 'n' is part of answer --- diff --git a/IPython/html/notebookapp.py b/IPython/html/notebookapp.py index 81fda2d..91f7e6a 100644 --- a/IPython/html/notebookapp.py +++ b/IPython/html/notebookapp.py @@ -708,7 +708,7 @@ class NotebookApp(BaseIPythonApplication): r,w,x = select.select([sys.stdin], [], [], 5) if r: line = sys.stdin.readline() - if line.lower().startswith('y'): + if line.lower().startswith('y') and 'n' not in line.lower(): self.log.critical("Shutdown confirmed") ioloop.IOLoop.instance().stop() return