[IPython-user] ipython problems within Carbon Emacs on Leopard

kmt@ftm... kmt@ftm...
Fri Jan 11 10:22:54 CST 2008

Alexander Schmolck <a.schmolck@gmx.net> writes:

>> 1) One problem is the prompt looks like this:
>>    "^A^BIn [^A^B20^A^B]:^A^B"
> This looks like the display of ansi escape sequences that ipython uses to
> colorify the text is broken. I have no idea why that would happen, maybe
> emacs's ansi-color (which ipython.el uses, precisely so that the output isn't
> displayed as above :) is broken on Leopard?
> The relevant line in python.el is: (after require'ing 'ansi-color)
>   (ansi-color-for-comint-mode-on)
> I think you can also toggle that interactively (M-x
> ansi-color-for-comint-mode-on), you could try and see whether turning it on or
> off changes anything.

Hm, it doesn't seem to be the ansi-color-for-comint-mode.  If I switch
it off, it becomes worse.  For example, here it is on:

^A^BIn [^A^B6^A^B]:^A^Bjunk
NameError                                 Traceback (most recent call last)

/Users/kmt/.emacs.d/<ipython console> in <module>()

NameError: name 'junk' is not defined

and here it is off:

^A^BIn [^A^B7^A^B]:^A^Bjunk
^[[0;31mNameError^[[0m                                 Traceback (most recent call last)

^[[0;32m/Users/kmt/.emacs.d/<ipython console>^[[0m in ^[[0;36m<module>^[[0;34m()^[[0m

^[[0;31mNameError^[[0m: name 'junk' is not defined

^A^[[0;34m^BIn [^A^[[1;34m^B8^A^[[0;34m^B]:^A^[[0m^B

More information about the IPython-user mailing list