[IPython-dev] Twisted reactor + IPython0
Laurent Dufréchou
laurent.dufrechou@gmail....
Thu Mar 20 03:13:56 CDT 2008
Hi all,
Just to drop some more need on threading.
I've written a little piece of code to create a WX Ipython shell.
I've used for this a thread with an ipython0 instance and communicate with
the gui via polling (the first version) and now I'm starting to use
callback.
One big need I have and that cannot be resolved easily is to ba able to have
some sort of Ipython instance with GUI loop support + twisted support.
The idea:
Any WXAPP/QTApp <-- XML RPC --> The twisted loop + Any GUI(QT/WX...) loop
+ Ipython server.
With XML RPC you can just make any action inside Ipython instance.
I want this to be able to make a WX(and QT) console able to launch any QT/Wx
windows and thus independent to the Console App.
With this you can have a really really good dev env for graphical app.
Moreover designing such a server will be raally good for people who want an
ipython console, because with this all the wx/QT/... console code will share
the same ipython object that will save lot of work.
Glenn, perhaps my idea is stupid, but do you thing we will have a lot of
performance related problem with this, do you see any issue as you've worked
a little on something like this??
Perhaps it is a too big thing for a simple Ipython console...
Laurent
-----Message d'origine-----
De : ipython-dev-bounces@scipy.org [mailto:ipython-dev-bounces@scipy.org] De
la part de Ville M. Vainio
Envoyé : jeudi 20 mars 2008 07:20
À : Glenn H Tarbox, PhD
Cc : ipython-dev Mailing list
Objet : Re: [IPython-dev] Twisted reactor + IPython0
On Thu, Mar 20, 2008 at 7:41 AM, Glenn H Tarbox, PhD <glenn@tarbox.org>
wrote:
> On Thu, 2008-03-20 at 07:33 +0200, Ville M. Vainio wrote:
> > On Thu, Mar 20, 2008 at 12:35 AM, Glenn H Tarbox, PhD
<glenn@tarbox.org> wrote:
> >
> > > This is where I started originally. There's a better fix which I
posted
> > > a while ago. The below uses polling which is unnecessary. By
modifying
> > > shell, you can turn the whole thing into a callback.
> >
> > The ASPN recipe works like the current GUI backends, so it seems to
> > "obviously work".
>
> it works, just spins cycles unnecessarily. If you look through this
> list you'll see the minor changes I made to Shell (posted on Feb 9). My
> code generates a callback when somethings needs to be serviced as
> opposed to having a high-frequency polling loop try and determine the
> same thing
Goodie. Frankly, I probably missed the original discussion because I
thought of it was mostly related to IPython1 (though obviously I can't
remember why I missed it) ;-)
--
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
_______________________________________________
IPython-dev mailing list
IPython-dev@scipy.org
http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 18/03/2008
20:52
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 18/03/2008
20:52
More information about the IPython-dev
mailing list