[IPython-user] Fwd: debugging a function w/ipython

Ville M. Vainio vivainio at gmail.com
Thu Jan 11 23:52:15 CST 2007


On 1/12/07, belinda thom <bthom at cs.hmc.edu> wrote:

> Is there a way to structure code so that _if_ I'm using IPython the
> one-line-at-top import gets called, and if I'm just using Python it
> gets ignored?

ip = IPython,ipapi.get()

if not ip:
  print "We are not running python"

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'


More information about the IPython-user mailing list