[IPython-user] Using IPython magic commands in a script to be run in IPython

Steve Steiner (listsin) listsin@integrateddevcorp....
Mon Feb 15 09:49:26 CST 2010

On Feb 15, 2010, at 10:14 AM, Brendan Arnold wrote:

> Hi there,
> I want to run a script which executes the IPython %run command to set
> up an environment (like a lightweight import) before I work in
> IPython. This will only ever be run itself from an IPython interpreter
> using %run.
> How do I do this?

# ipython setupscript.py -i

Runs the script, leaves you in interactive mode.


More information about the IPython-user mailing list