Impossible to interrupt Python Console cell execution

Answered

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)

 

2 comments

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.

0

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.

1

Please sign in to leave a comment.