[IPython-dev] Brand new refactored version for linux users!
Sun Jan 13 16:03:34 CST 2008
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-22.214.171.124-0ubunutu3
I suspect a locales error.
Can you do this?:
Around line 424 in ipython_view.py:
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...
I suspect that your terminal is not cp437 encoded.
If it doesn't works try also to remove
by the way I'm upgrading my ubuntu gutsy or gusty perhaps I will have same
bug as yours :)
De : Fernando Perez [mailto:firstname.lastname@example.org]
Envoyé : dimanche 13 janvier 2008 22:13
À : Laurent Dufréchou
Cc : IPythonemail@example.com
Objet : Re: [IPython-dev] Brand new refactored version for linux users!
On Jan 13, 2008 2:01 PM, Laurent Dufréchou <firstname.lastname@example.org>
> Hi Fernando,
> Ok got the problem with 'magic'
> In fact the problem I got with ipython is that every time a call to pager
> done depending from where it is called it can appear that I haven't
> redirected the function.
> I had to do this weird thing in my code...:
> #we replace the ipython default pager by our pager
> #FIXME: add a pager callback to IPython
> IPython.OInspect.page = self._pager
> IPython.genutils.page = self._pager
> IPython.iplib.page = self._pager
> (any better idea welcome!!)
Mmh, I can't recall at the moment, but we should have a cleaner API for
> So 'magic' function is one of these function that need to be redirected,
> my pager.
> Fernando, do you think it could be possible to add a hook to ipython to
> avoid this bad coding method??
Certaily we should :)
> For the syntax highlighting problem can you send a private mail @gmail? +
> tell me witch linux distrib you use and the version of wx too. Will take a
> look at it and add Experimental warning inside it :).
I'm on ubuntu gutsy, up to date. I'll send you the screenshot off-list.
> By the way, can you give me the commands that didn't work as expected??
> (should only be ipython one...)
They worked, but produced junk. You'll see it in the screenshot.
More information about the IPython-dev