How to stop automatic running in python console?

Answered

Normally when you run a file, it runs in the "4: Run" window (sorry I don't know the proper name for this)

But after you've chosen 'run file in python console' once, the normal run button will also run in the python console.

I know you can stop this by unchecking the box in the run/debug configuration, but it's such a nuisance to have to do this every time.

Is there way to stop the 'run in python console' box from getting checked automatically?

 

I'm using Pycharm 2019.3.4 on win10

8
6 comments

Unfortunately, it's a known issue https://youtrack.jetbrains.com/issue/PY-36063, please upvote and feel free to leave comments.

As a workaround, you could select the code with Ctrl+A and use Execute Selection in Python Console instead, which is much less convenient, but at least it does the job without changing your run configuration.

0

Oh god, I finally found how to do it. It's weird, that even employees didn't know...

So:

1. Click name of your code at the top of the screen

2. Click "Edit configurations

3. Click on "Edit configuration templates..." on the left corner of the opened window

4. Last but not least, uncheck "Run with Python Console"

 

Now it is unchecked for every new file🥴

 
uncheck na górze ekranu
 
8

Antekdwa that is working for me. Thanks.

2

Please sign in to leave a comment.