[IPython-user] start ipython from my own script

Ondrej Certik ondrej@certik...
Sat May 30 20:55:47 CDT 2009


I have a program or script and at one point I would like to start an
ipython shell and pass all my local/global variables into it, so that
I can experiment. Importing the whole script in ipython session
doesn't help, because I want to run ipython at some particular point.
E.g something like an enhanced version of:

import pdb

So far I tried:

import IPython
ipython = IPython.Shell.start()

that works, but I don't see the variables from the program. What is
the best way to do that?


More information about the IPython-user mailing list