Running a python script from a REPL session
>>>
import
runpy
>>>
runpy
.
run_path
(
'my_script.py'
)