[IPython-dev] Re: [SciPy-dev] Generic gui_thread + IPython: solution already exists!
Fernando Perez
Fernando.Perez at colorado.edu
Mon Nov 15 15:19:16 EST 2004
Prabhu Ramachandran schrieb:
> Yes, that is a possibility. Actually, since the error is random it
> might be a little subtler. update_tk() is run outside of runcode. So
> this might be breaking thread safety somehow. I've attached a
> modified Shell.py that tries to do the right thing by calling
> update_tk from inside runcode. Please let me know if it gets any
> better and if there are no freezes anymore. This *might* just do the
> trick.
Quick report with this Shell.py you just sent. On a Fedora3 box, I get with
-wthread:
1. no immediate lockup
2. I can start mayavi from the ipython shell, and load a visualization:
In [1]: import mayavi
In [2]: mv = mayavi.mayavi()
In [3]: mv.load_visualization('heart.mv')
3. BUT, the mayavi renderwindow responds very sluggishly. Rotating the view
is very jerky, which it normally isn't if I don't use the -wthread option
(it's actually smooth as silk).
4. I kept rotating the view, and all of a sudden python coredumped. Mayavi and
ipython both went up in smoke. Not good.
This is definitely not user-ready, sorry to say so :(
Cheers,
f
More information about the IPython-dev
mailing list