[IPython-user] printing lots of stuff to the screen
Ryan Krauss
ryanlists@gmail....
Sat May 26 09:03:27 CDT 2007
I like the %capture magic as well
On 5/26/07, Ville M. Vainio <vivainio@gmail.com> wrote:
> 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'
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
>
More information about the IPython-user
mailing list