Show More
@@ -99,6 +99,16 b' kernel_flags.update(shell_flags)' | |||||
99 | kernel_aliases.update(session_aliases) |
|
99 | kernel_aliases.update(session_aliases) | |
100 | kernel_flags.update(session_flags) |
|
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 | # Application class for starting an IPython Kernel |
|
113 | # Application class for starting an IPython Kernel | |
104 | #----------------------------------------------------------------------------- |
|
114 | #----------------------------------------------------------------------------- | |
@@ -335,6 +345,7 b' class IPKernelApp(BaseIPythonApplication, InteractiveShellApp):' | |||||
335 | self.log.info(line) |
|
345 | self.log.info(line) | |
336 | # also raw print to the terminal if no parent_handle (`ipython kernel`) |
|
346 | # also raw print to the terminal if no parent_handle (`ipython kernel`) | |
337 | if not self.parent_handle: |
|
347 | if not self.parent_handle: | |
|
348 | io.rprint(_ctrl_c_message) | |||
338 | for line in lines: |
|
349 | for line in lines: | |
339 | io.rprint(line) |
|
350 | io.rprint(line) | |
340 |
|
351 |
General Comments 0
You need to be logged in to leave comments.
Login now