<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 12 January 2013 08:34, Andrew Spiers <span dir="ltr">&lt;<a href="mailto:andrew@andrewspiers.net" target="_blank">andrew@andrewspiers.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
when I %run  a something that produces a lot of output, is there any<br>
way to run that through a pager?<br>
I&#39;m using ipython at the console.</blockquote></div><br></div><div class="gmail_extra">I think using %%capture should work:<br><br></div><div class="gmail_extra">%%capture run_output<br></div><div class="gmail_extra">

%run ...<br><br></div><div class="gmail_extra">Then:<br><br></div><div class="gmail_extra">from IPython.core import page<br>page.page(run_output.stdout)<br><br></div><div class="gmail_extra">Thomas<br></div><div class="gmail_extra">

<br></div></div>