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
Please sign in to leave a comment.
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.
thanks
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🥴
Antekdwa , That doesn't change anything. As soon as you run your file in the python console the checkmark is back again and you must uncheck it again if you want to run in normal mode.
Antekdwa that is working for me. Thanks.
Antekdwa you are a life saver.