[IPython-dev] Brand new refactored version for linux users!
Sun Jan 13 15:01:18 CST 2008
Ok got the problem with 'magic'
In fact the problem I got with ipython is that every time a call to pager is
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!!)
So 'magic' function is one of these function that need to be redirected, to
Fernando, do you think it could be possible to add a hook to ipython to
avoid this bad coding method??
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 :).
By the way, can you give me the commands that didn't work as expected??
(should only be ipython one...)
De : Fernando Perez [mailto:firstname.lastname@example.org]
Envoyé : dimanche 13 janvier 2008 19:03
À : Laurent Dufrechou
Cc : IPythonemail@example.com
Objet : Re: [IPython-dev] Brand new refactored version for linux users!
[ Note: the screenshot has been removed because the scipy server is
having problems and I can't approve the submission.
It basically showed no highlighting, and weird artifacts for commands
like 'ls' in the output. Laurent, I can send it to you privately if
you want ]
On Jan 10, 2008 2:55 PM, Laurent Dufrechou <firstname.lastname@example.org>
> Hello there,
> Here is finally a new version with a completely refactored display widget.
Great, many thanks.
> I've switched to scintilla because of the difference in behavior between
> windows and linux.
> The benefit is that now history widget got syntax highlighting J
Mmh, I don't see that yet, at least not on my linux box. I'm
attaching a screenshot so you can see:
- no highlighting
- strange ESC]0; artifacts for some output.
I also noticed that anything that is printed out goes to the terminal.
Try for example
and you'll see the output paged in the terminal where wxIPython was
started. After that, I had to kill the whole thing because I couldn't
regain control of the WX shell at all, no matter what I tried.
So it still seems to have a few rough edges, but I see a lot of
potential here. Thanks!
> I've commited all of this under ipython/trunk/ipython/gui. Don't know if
> it's ok as it the first time I do this
That's OK, it gives you a self-contained area to work in. It would be
good if you could add a README.txt file that indicates that this is
still *purely experimental* code, so that people aren't misled yet
into thinking that it has the full ipython capabilities. I'm very
happy to have you on board and contributing a real GUI ipython, but we
need to be careful not to confuse users as to the robustness of the
More information about the IPython-dev