[IPython-user] Problem with ? and ?? in ipython combined with paging
tom.denniston at alum.dartmouth.org
Fri Jan 5 15:01:21 CST 2007
Yes the -r works. Thanks Robert and Fernando. Sorry to waste
everyone's time with a dumb question. Didn't realize it was merely
delegating to less on my platform (linux).
On 1/5/07, Fernando Perez <fperez.net at gmail.com> wrote:
> On 1/5/07, Tom Denniston <tom.denniston at alum.dartmouth.org> wrote:
> > Much of my code contains long descriptive docstring with many tests.
> > There is a great feature that I love in ipython where if you have a
> > func and you type "func?" it give a pretty colored docstring that is
> > incredibly useful. The nagging problem I face is that if the
> > docstring is larger than 25 lines then it invokes the python pager and
> > the pretty docstring becomes a garbled mess of "ESC[1;31", etc.
> > Below is a docstring that works and one that does and the code that
> > produced both. I was wondering whether this is a bug in the python
> > pager or ipython and if there is anything that can be done.
> What pager and platform are you using? If your pager is 'less' under
> *nix, you need to configure it with the -r flag so that it correctly
> interprets color escapes, as described in the manual:
> I also added mention of it in the faq:
> > I've been using IPython for over a year and a half and it is a
> > phenomenal tool. Thanks Fernando, et al. for developing something
> > really awesome.
> Thanks for the kind words, we're all glad it's useful.
> IPython-user mailing list
> IPython-user at scipy.org
More information about the IPython-user