-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing JuliaCall interferes with Ctrl + C behavior in Python console #223
Comments
What version of JuliaCall are you on? I recently changed the signal handling for precisely this reason. |
I'm using the latest version, 0.9.6. My Python is 3.10.6 and Julia is 1.8.0. |
Ok thanks. I'll take a look sometime - signal handling is tricky. |
This issue has been marked as stale because it has been open for 30 days with no activity. If the issue is still relevant then please leave a comment, or else it will be closed in 7 days. |
This issue has been closed because it has been stale for 7 days. If it is still |
Still worth a fix :) |
Is it still an issue? It appears to work fine in Julia 0.9.14 on Windows. (You can make it not fine again by launching Python like |
Ah cool, did you fix it since last year? I haven't checked. |
Normally in the Python console, if you've typed a line but haven't run it yet, pressing Ctrl + C discards what you've typed, displays
KeyboardInterrupt
without a stack trace, and starts a new line.After importing JuliaCall, this behavior changes. Pressing Ctrl + C on its own appears to do nothing - you can still type on the current line. But when you press Enter, you get a
KeyboardInterrupt
with a stack trace. Everything you've typed between Ctrl + C and Enter may get executed - or it may not.For example, normally if you type "fo", then press Ctrl + C, then type "o = 1", then press Enter, it discards the "fo" and assigns "o = 1":
After importing JuliaCall, it still assigns o = 1, but looks like this:
But if o was already defined, the assignment fails:
The text was updated successfully, but these errors were encountered: