[IPython-dev] More %magics - numpy print options

Robert Kern robert.kern@gmail....
Fri Jan 23 15:06:35 CST 2009

Andrew Straw wrote:
> Robert Kern wrote:
>> On Fri, Jan 23, 2009 at 01:28, Andrew Straw <strawman@astraw.com> wrote:
>>> On this subject, sympy has a very nice autodetection-of-terminal-width
>>> feature that would be very cool to port into the numpy printing stuff
>>> and/or ipython. Being completely oblivious of where this should best
>>> live and being completely lacking in spare time, all I can do is mention
>>> that it would be a cool feature to port into ipython or numpy.
>> IPython does have a function for this, too, on UNIX systems with
>> curses (sympy also uses curses on UNIX but also has a Windows
>> implementation using ctypes and the Windows API). I also found another
>> UNIX implementation that only uses the fcntl and termios modules,
>> which may be more ubiquitous than curses.
>> http://mail.python.org/pipermail/python-list/2006-February/365594.html
> Hmm, sympy's is on by default and I've never seen the effect in
> IPython... How to turn it on?

It's actually not used for printing. It's used to determine whether or not to page in 

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the IPython-dev mailing list