##// END OF EJS Templates
report inability to signal --existing kernels
Paul Ivanov -
Show More
@@ -102,7 +102,11 b' class ZMQTerminalIPythonApp(TerminalIPythonApp, IPythonMixinConsoleApp):'
102
102
103 def handle_sigint(self, *args):
103 def handle_sigint(self, *args):
104 self.shell.write('KeyboardInterrupt\n')
104 self.shell.write('KeyboardInterrupt\n')
105 self.kernel_manager.interrupt_kernel()
105 if self.kernel_manager.has_kernel:
106 self.kernel_manager.interrupt_kernel()
107 else:
108 print 'Kernel process is either remote or unspecified.',
109 print 'Cannot interrupt.'
106
110
107 def init_code(self):
111 def init_code(self):
108 # no-op in the frontend, code gets run in the backend
112 # no-op in the frontend, code gets run in the backend
General Comments 0
You need to be logged in to leave comments. Login now