From 2c56f62f19a0becc75faeff1c39d5f282e64d734 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 25 Oct 2018 18:53:18 -0700 Subject: [PATCH] Mention KeyboardInterrupt does not work [ci skip] --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index e8f781dd..1d3dd79c 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,22 @@ disk space than the similar hack for Julia 0.6. For the update on this problem, see: https://github.com/JuliaLang/julia/issues/28518 +### Ctrl-C does not work / terminates the whole Python process + +Currently, initializing PyJulia (e.g., by `from julia import Main`) +disables `KeyboardInterrupt` handling in the Python process. If you +are using normal `python` interpreter, it means that canceling the +input by Ctrl-C does not work and repeatedly providing +Ctrl-C terminates the whole Python process with the error +message `WARNING: Force throwing a SIGINT`. Using IPython 7.0 or +above is recommended to avoid such accidental shutdown. + +It also means that there is no safe way to cancel long-running +computations or I/O at the moment. Sending SIGINT with +Ctrl-C will terminate the whole Python process. + +For the update on this problem, see: +https://github.com/JuliaPy/pyjulia/issues/211 Testing -------