[IPython-dev] IPython with Color on windows

Fernando Perez fperez at colorado.edu
Sat May 24 17:11:44 CDT 2003


Fernando Perez wrote:

> Well, I favor something like 2.  It seems to make sense to instantiate the 
> main ipython shell object with a pair of optional stdout/stderr arguments.  If 
> not given, they default to sys.stdout/err as usual.  If given, these are used 
> by the controlling class to pass down to other objects it uses which offer the 
> same protocol.  Currently most write directly to stdout/err, but this would be 
> easy (though time-consuming) to change.

Just a clarification.  In order to avoid over-engineering this solution, I 
would only use the special output channels for printing 'special' strings, 
such as colored stuff.  This would keep the changes to a minimum (rather than 
having to change every single 'print' statement).

Later, if this same approach is deemed necessary for other things (such as GUI 
integration), we can always extend it.  But let's do 'the simplest thing that 
can work' first :)

best,

f.




More information about the IPython-dev mailing list