##// END OF EJS Templates
do not shutdown notebook if 'n' is part of answer...
Renaud Richardet -
Show More
@@ -708,7 +708,7 b' class NotebookApp(BaseIPythonApplication):'
708 r,w,x = select.select([sys.stdin], [], [], 5)
708 r,w,x = select.select([sys.stdin], [], [], 5)
709 if r:
709 if r:
710 line = sys.stdin.readline()
710 line = sys.stdin.readline()
711 if line.lower().startswith('y'):
711 if line.lower().startswith('y') and 'n' not in line.lower():
712 self.log.critical("Shutdown confirmed")
712 self.log.critical("Shutdown confirmed")
713 ioloop.IOLoop.instance().stop()
713 ioloop.IOLoop.instance().stop()
714 return
714 return
General Comments 0
You need to be logged in to leave comments. Login now