[IPython-dev] Column format

Robert Kern robert.kern at gmail.com
Mon Apr 4 16:58:35 EDT 2011


On 4/4/11 12:04 PM, Hugo Gagnon wrote:
> Hello,
>
> Is there a function in the ipython API that takes in a list of strings
> to output and returns a nicely formatted list of lines depending on the
> terminal's width? If so where is it located so I'll probably need to
> modify it since I don't really have a terminal as is but rather a GUI
> application...

https://bitbucket.org/robertkern/kernmagic/src/tip/kernmagic/utils.py#cl-92

-- 
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