[IPython-user] ? / pylab question

belinda thom bthom at cs.hmc.edu
Wed Jan 10 01:50:12 CST 2007


Hi,

I've been using IPython w/the -pylab flag. Why does

   In [1]: draw_if_interactive?

produce:

   Type:           function
   Base Class:     <type 'function'>
   String Form:    <function wrapper at 0x3112c30>
   Namespace:      Interactive
   File:           /Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/site-packages/IPython/genutils.py
   Definition:     draw_if_interactive(*args, **kw)
   Docstring:
       <no docstring>

I've looked at genutils --- no draw_if_interactive function lives  
there. It does live in Shell.py, but as:

   import matplotlib as pylab
   self.pylab = pylab
   self.pylab.draw_if_interactive

Thanks a bunch.

--b



More information about the IPython-user mailing list