[IPython-dev] Brand new refactored version for linux users!

Fernando Perez fperez.net at gmail.com
Wed Jan 16 01:30:31 EST 2008


On Jan 13, 2008 3:03 PM, Laurent Dufréchou <laurent.dufrechou at gmail.com> wrote:
> Ok got the screenshot.
> For syntax highlighting, it is for history only (look the little text
> written in blue ;) )
> Sadly I couldn't activate it for Ipython shell widget because it messed up
> the colors of In[,Out[ and ipython ouput (which still colored as normal
> ipython shell indeed).
> Parhaps will add it to my todo list, but I was so happy to have a similar
> working behavior on liux and windows that I let the things like this :)
> For the ESC bell etc...
> Ouch this is a big bug!
> ls,cd works well here under liux and windows.
>
> Please can you tell wich version of wx you use?
> Sudo synaptic, search wx: I've got python-wxgtk-2.8.4.0-0ubunutu3

Same here.

> I suspect a locales error.
> Can you do this?:
>
> Around line 424 in ipython_view.py:
> Replace line
> result =
> stdout.read()#.decode('cp437').encode(locale.getpreferredencoding())
> by
> result = stdout.read()
> #we use print command because the shell command is called inside IPython
> instance and thus is
> #redirected to thread cout
> #"\x01\x1b[1;36m\x02" <-- add colour to the text...
> print "\x01\x1b[1;36m\x02"+result
>
> I suspect that your terminal is not cp437 encoded.
> If it doesn't works try also to remove
> print "\x01\x1b[1;36m\x02"+result
> by:
> print result

Tried both, neither made any difference.  Same result as before.

>
> by the way I'm upgrading my ubuntu gutsy or gusty perhaps I will have same
> bug as yours :)

OK, let us know how that goes.

Cheers,

f



More information about the IPython-dev mailing list