From: James M. <mu...@pi...> - 2009-12-19 15:14:10
|
I haven't tried this, but people might want to look at this page. http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/example_mlab_visual.html The mlab package works with ipython, and this is an attempt to implement a Vpython-like api within it. Again, I haven't tried it, so I can't offer any review of it. -Jim On Dec 18, 2009, at 1:47 PM, Venkat Ramanan wrote: > Hi all, > > First off, thanks for the great work. > > I've been dabbling with Python for a bit aiming to move away from > Matlab. A few days ago, to do some NMR simulation, I started coding > with vpython and the 3D-plots are incredible. Great experience for a > newbie 3D programmer like me. > > Anyway, for developing python programs, I've found ipython very > useful. The interactivity is just great and there are many more > features. See here (http://ipython.scipy.org/) > > However, vpython and ipython don't interact very well. > > 1a. If we run the programs through ipython, when we close the vpython > window it crashes the ipython as well. The prompt (terminal > properties) is affected as well. Why? > > 1b. If we don't close the window we can run the program again in the > ipython prompt. However it doesn't reuse the existing plot. It opens a > new window and during a debugging session, a number of windows are > opened. Is it possible to reuse the existing vpython window? > > 2. This is related to the vector() object used in vpython. Is it in > anyway related to the numpy array() or matrix() object? I've been > passing the pos/axis of arrows with numpy arrays and it seems to work. > Is there a difference in using vector() as opposed to numpy.array? > > 3. Is there a matrix object similar to vector? I'm using the numpy > array and matrix objects now to represent the rotation matrix. > > I'm using Ubuntu-9.10 64 bit, with the Boost fixes described > previously in the list. > > Thanks, > Venkat. > > ------------------------------------------------------------------------------ > 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 |