Run current script in python console?

When I create a new python file in the current PyCharm project directory and then open the iPython Console, I can run the script using "run scriptname.py" however, it would be nice to just execute the current script with a hotkey or toolbar button. Is there a way to do this in PyCharm? For some of my scripts, running them with Control-R will not work, so having a way to launch them directly in iPython would be preferred.
1 comment
Comment actions Permalink

CTR + SHIFT + F10 (on PC)

COMMAND + SHFT + F10  (MAC)

WORKS !!!

0

Please sign in to leave a comment.