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 q
Select the code fragment or the entire file, then use Execute Selection in Console from the context menu.