I want this so I can retain the command line history after repeated runs, and to paste lines from the console into tests etc. Exactly like in IDLE.
[I realize this question is basically a duplicate of Running a module from the pycharm console. But the question there is not answered satisfyingly (for me), and my lack of reputation does not let me comment there, since I just signed up.]
tools->Run python console
import your module usingfrom _ import _
and call your class or methods, If you have amain()
then just callmain()
, if you are getting a specific error just paste it and we'll try to help. – Charlacharlady