Merge pull request #5546 from renaud/master

do not shutdown notebook if 'n' is part of answer
This commit is contained in:
Min RK 2014-04-09 16:02:17 -07:00
commit c9438bdfcd

View File

@ -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