Impossible to interrupt Python Console cell execution
In Pycharm's scientific mode (I'm using the latest pro version), If I run some computing in a code cell and interrupt it by clicking cancel (this is different from stopping the Python console, which I do not want to do, since that would delete all the dataframe that I read in before that code cell), then the computation actually doesn't stop.
Even worse, afterwards I cannot run a single code cell anymore, as it says "Previous execution still running" - yet the Python console is responsive nonetheless.
Is this a bug? Is there really no way to stop the execution of a code cell? This is super simple in Jupyter where if I click "interrupt kernel" it *immediately* stops the execution and I can relaunch a different task without having to reload all my variables etc.; this should also be possible in Pycharm.
Please see the GIF-video below - it illustrates more clearly the problem of the execution not interrupting and preventing further code cells from execution: https://imgur.com/a/aiK4mMn
(the video is a minute and a half long - if you want to see if from the beginning, just refresh your page)
Please sign in to leave a comment.
Hi Eikama,
This seams to be a bug indeed. I have filed it to our issue tracker for an investigation https://youtrack.jetbrains.com/issue/PY-32501, please attach your logs folder zipped (Help | Show Log in...) to the issue and follow for future updates.
See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
I have the same problem now.
working with
PyCharm 2019.1.1 (Professional Edition)
Build #PY-191.6605.12, built on April 3, 2019
Licensed to [i have deleted this info - but is licensed :) ]
Subscription is active until February 27, 20xx
JRE: 11.0.2+9-b159.34 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Thanks for your support.
The problem still exists!
It still exists in version 2020.3.4 scientific mode. However as I've found out by someone's comment: https://stackoverflow.com/questions/22913490/keyboard-interrupt-in-debug-mode-pycharm
"One of the comments in the tracker: 'I have actually found out that Ctrl+C does eventually stop the running script, but you have to first write a letter into the console while it's running. So click into the console window, hit any key and then press Ctrl-C. In other words, it looks like a problem of GUI frame getting focus.'"