[IPython-user] pass command flags to script

John Hunter jdh2358@gmail....
Mon Nov 24 11:16:24 CST 2008


I would like to pass command args to a script and after the script
runs, drop into an ipython shell.  Something like

  >  ipython 'agg_oo.py --verbose-helpful'

Which does not work.  Is such a thing possible?

If not, what is the proper incantation to add at the end of the script
to open an interactive ipython shell with the namespace of the script?
 I tried::

  from IPython.Shell import IPShellEmbed
  ipshell = IPShellEmbed()
  ipshell()

but it did not like the command args either :-(


Thanks,
JDH

IPython 0.9.0.bzr.r1016


More information about the IPython-user mailing list