From: Michele M. <mat...@gm...> - 2009-12-23 09:34:48
|
Hi all, Visual use a gtk main loop to manage the display. the ipython -gthread switch will do the trick. Using the pylab switch instead will start the pylab interface using the backend configured on your matplotlib (~/matplotlib/matplotlibrc on Linux.) On ubuntu the default backend is gtk so ipython -gthread or ipython -pylab has the same effect, except some numpy function which are directly imported in the global namespace. HTH, Michele. On Wed, Dec 23, 2009 at 2:22 AM, Guy K. Kloss <g....@ma...> wrote: > On Wed, 23 Dec 2009 09:49:07 Venkat Ramanan wrote: > > I installed VIDLE and that works for me as well. I don't know if I can > > fix the issues with ipython, but I'll try. > > If one looks at the documentation/tutorials for matplotlib (-pylab), Mayavi > (- > wthread), ... one finds that for ipython you need to start it with an extra > parameter (the ones mentioned in parens above). The problem being that for > GUI > tools in order to function within the same process there's an event loop. > But > an interactive shell is somewhat of an event loop in itself. So some de- > coupling needs to be done to integrate the two event loop concepts with > each > other. ipython provides that through the switches. > > I'd imagine that this was also one of the motivations to provide VIDLE over > plain IDLE, although I've never used IDLE myself. Maybe one of the provided > ipython switches would also help with VPython, or another one would need to > be > created to make them interact nicely. Definitely sounds like something that > could be quite useful ... > > Guy > > -- > Guy K. Kloss > Institute of Information and Mathematical Sciences > Te Kura Pūtaiao o Mōhiohio me Pāngarau > Massey University, Albany (North Shore City, Auckland) > 473 State Highway 17, Gate 1, Mailroom, Quad B Building > voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 > G....@ma... http://www.massey.ac.nz/~gkloss<http://www.massey.ac.nz/%7Egkloss> > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |