[pymvpa] object_name? in IPython not returning colored output

Jan Derrfuss j.derrfuss at donders.ru.nl
Tue Jan 29 13:03:13 UTC 2013


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



More information about the Pkg-ExpPsy-PyMVPA mailing list