Whenever I run a script in PyCharm, it starts the PyDev debugger (with IPython terminal).
I've figured out how to disable the IPython terminal, but then it just runs the "normal" terminal instead. I just want to run scripts and print output to console, and then exit.
How to disable this?
The solution was to go to Run->Edit Configurations... and for the run configuration untick the box that says Show command line afterwards (See image below.)
If you have any existing run configurations, they must all be changed. Changing the default configuration will, as expected, affect all new configurations. A configuration is created for each file that is being run.
Update: Thanks to @smb for adding that for Mac users or people on Py Charm Professional 2018.1.1: the Show command line afterwards option is now called "Run with Python Console". Unticking this box has the same effect as the "Show command line afterwards" option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With