[IPython-user] Incomplete color support in IPython 0.6.0.

Vincent N. Virgilio virgilio at ieee.org
Sat May 15 02:26:03 CDT 2004


First, thank you very very much for IPython; I'm hooked.

But you might like to know that I have encountered a problem with its 
color support on Win2k. There is something incomplete about it, even 
with Gary Bishop's latest Readline.

I have installed:

1. Enthought's latest Python bundle.
2. IPython 0.6.0
3. Gary Bishop's latest Readline for win32, v1.2.
4. matplotlib v0.53.1
5. pywin32-201

Notice the escape codes in IPython output below. Such codes also show 
for commands like 'import os; os?'. The In prompt, however, is colored 

I have @colors = Linux, @color_info = 1. Of course, the codes disappear 
if I set @colors = NoColor. The 'less' in PAGER is from Cygwin; a native 
win32 version didn't make a difference. Nor did '-r', either as part of 
the command in PAGER, or separately in LESS.

The Readline functionality seems to work (tab completion, 
movement/edits). Except Ctl-U, which doesn't do anything. Shouldn't it 
erase the line? (Ctl-W deletes words as expected.)


Vince Virgilio

--- begin IPython output ---

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\vince>set PAGER=less

C:\Documents and Settings\vince>ipython.py
Python 2.3.3 (#51, Feb 16 2004, 04:07:52) [MSC v.1200 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.6.0 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
@magic  -> Information about IPython's 'magic' @ functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: 1/0
←[1;31mZeroDivisionError←[0m                         Traceback (most 
recent call

←[1;32mC:\Documents and Settings\vince\<console>←[0m

←[1;31mZeroDivisionError←[0m: integer division or modulo by zero

In [2]:

In [6]: a
←[0;31mOut[←[1;31m6←[0;31m]: ←[0m6

In [7]:

More information about the IPython-user mailing list