[IPython-user] printing lots of stuff to the screen

Ville M. Vainio vivainio@gmail....
Sat May 26 04:22:53 CDT 2007


On 5/25/07, Stefan van der Walt <stefan@sun.ac.za> wrote:

> This sounds like a job for ipipe.  Attached is a patch for a new
> command called "icap", that captures any printed output of a given
> command.  For example

I don't object to adding this to ipipe if Walter wants to check it in.
However, I could also see this is as a magic function. The logical
place is ext_rescapure.py.

%capture EXPR

-> returns the full printout of EXPR

Then you could do

myout = %capture print "hello world"

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


More information about the IPython-user mailing list