[pymvpa] object_name? in IPython not returning colored output

Michael Hanke mih at debian.org
Thu Jan 31 11:54:33 UTC 2013


I had seen this on various machines from time to time, but never had the
stamina to figure it out.



On Tue, Jan 29, 2013 at 02:03:13PM +0100, Jan Derrfuss wrote:
> Dear All,
> It took me a while to figure this one out, so I thought I'll post
> the solution to the mailing list in case someone else has the same
> issues.
> When I used object_name? or object_name?? in IPython, I frequently
> (but not always) had output with color escape sequences looking like
> this:
> ESC[0;31mType:          ESC[0mAttributesCollector
> (...)
> After a while, I realized that this only happens with longer output.
> It turned out that the underlying problem is that longer output is
> passed to a pager (e.g., less) before it is displayed. For example,
> in my .bashrc I had set the pager to less:
> export PAGER=less
> The problem was solved by using less -r instead:
> PAGER='less -r'
> Best,
> Jan
> _______________________________________________
> Pkg-ExpPsy-PyMVPA mailing list
> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa

Michael Hanke

More information about the Pkg-ExpPsy-PyMVPA mailing list