Reputation: 683
I am a fairly new Pycharm user switched from other IDEs recently.
One question I have is about the interactive python interpreter, which is the "window" I can type in variables to check them after I ran my script. Pyscripter has this thing called "Python interpreter" and I know Pycharm also has.
I tried "Python Console" under "Tools", but I don't think it's the same thing. So I am wondering how I can find this Python Interpreter in Pycharm? I am using Community version 3.
Upvotes: 39
Views: 39662
Reputation: 94
I have PyCharm 2021.2.3 - I know that this question is 8 years old, but for anyone looking for a solution with more modern versions:
That gives me an interactive console after running my code, and I can access variables produced during runtime.
Upvotes: 2
Reputation: 41418
I'm using Pycharm community edition version 2016.1.2
I do the following to get an interactive prompt when debugging
As mentioned in the OP, to just get an interactive python prompt outside a running script, in the main menu bar select Tools->Python Console
Magically this will appear:
Upvotes: 33
Reputation: 351
You can set the PyCharm then it runs the same as PyScripter.
Run --> Edit Configurations --> Select "Show command line afterwards".
Upvotes: 22
Reputation: 6412
Choose Run
, Edit Configurations
, check "Show command line afterwards". It doesn't work after an exception is raised, however.
Upvotes: 0
Reputation: 2806
Run->Edit Configurations->Interpreter Options-> add -i
There will be a red prompt when your run is finished.
Upvotes: 6
Reputation: 632
Yes.
To launch an interactive console
On the main menu, choose Tools | Run Python console, or Tools | Run Django console
Upvotes: 8