[IPython-user] Configuring the pager
Fernando Perez
fperez.net@gmail....
Sat Oct 13 12:08:17 CDT 2007
On 10/13/07, Paul Moore <p.f.moore@gmail.com> wrote:
> On 13/10/2007, Fernando Perez <fperez.net@gmail.com> wrote:
> > Setting the PAGER environment variable to the command you want to use
> > should do the trick. The code that gets the pager is in genutils.py:
> [...]
> > So if you set PAGER to anything that reasonably behaves like a pager,
> > ipython will honor that.
>
> Excellent, thanks. On Windows, I tend not to like setting generic
> environment variables like EDITOR, PAGER, etc, globally, but I can
> certainly use a little wrapper script.
Why? Just curious.
> If I get to the point where I understand IPython internals well
> enough, would you be willing to accept a patch that checks a config
> option if PAGER isn't set?
Sure, I don't see why not. The editor can already be set in the
config, so it makes sense to allow the same for the pager.
Cheers,
f
More information about the IPython-user
mailing list