[IPython-User] paging output of %run

Thomas Kluyver takowl@gmail....
Sat Jan 12 06:06:17 CST 2013


On 12 January 2013 08:34, Andrew Spiers <andrew@andrewspiers.net> wrote:

> when I %run  a something that produces a lot of output, is there any
> way to run that through a pager?
> I'm using ipython at the console.


I think using %%capture should work:

%%capture run_output
%run ...

Then:

from IPython.core import page
page.page(run_output.stdout)

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130112/dbeaa705/attachment.html 


More information about the IPython-User mailing list