Skip to content

Commit

Permalink
Mention KeyboardInterrupt does not work [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Oct 26, 2018
1 parent db2c7f0 commit a5acafc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

### <kbd>Ctrl-C</kbd> / KeyboardInterrupt support / SIGINT handler

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 <kbd>Ctrl-C</kbd> does not work and repeatedly providing
<kbd>Ctrl-C</kbd> kills 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
<kbd>Ctrl-C</kbd> will terminate the whole Python process.

For the update on this problem, see:
https://github.com/JuliaPy/pyjulia/issues/211

Testing
-------
Expand Down

0 comments on commit a5acafc

Please sign in to comment.