Running python script inside ipython November 20, 2022 by Tarik from within the directory of “my_script.py” you can simply do: %run ./my_script.py