I\'d like to do something like:
do lots of stuff to prepare a good environement become_interactive #wait for Ctrl-D automatically clean up
Is i
With IPython v1.0, you can simply use
from IPython import embed embed()
with more options shown in the docs.