##// END OF EJS Templates
Merge pull request #3753 from ivanov/ctrl-c-for-kernel...
Paul Ivanov -
r11675:01322e25 merge
parent child Browse files
Show More
@@ -99,6 +99,16 b' kernel_flags.update(shell_flags)'
99 99 kernel_aliases.update(session_aliases)
100 100 kernel_flags.update(session_flags)
101 101
102 _ctrl_c_message = """\
103 NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.
104
105 To exit, you will have to explicitly quit this process, by either sending
106 "quit" from a client, or using Ctrl-\\ in UNIX-like environments.
107
108 To read more about this, see https://github.com/ipython/ipython/issues/2049
109
110 """
111
102 112 #-----------------------------------------------------------------------------
103 113 # Application class for starting an IPython Kernel
104 114 #-----------------------------------------------------------------------------
@@ -335,6 +345,7 b' class IPKernelApp(BaseIPythonApplication, InteractiveShellApp):'
335 345 self.log.info(line)
336 346 # also raw print to the terminal if no parent_handle (`ipython kernel`)
337 347 if not self.parent_handle:
348 io.rprint(_ctrl_c_message)
338 349 for line in lines:
339 350 io.rprint(line)
340 351
General Comments 0
You need to be logged in to leave comments. Login now