[IPython-dev] mayavi with ipython
Sat Sep 10 14:35:55 CDT 2011
On Sat, Sep 10, 2011 at 11:39 AM, Satrajit Ghosh <email@example.com> wrote:
> we would like to launch a simple interactive mayavi window.
> from mayavi import mlab
> but we would like this to launch from the terminal and return us an ipython
> prompt so that we can interact with the objects. unfortunately, we don't
> understand the event loop interactions too well.
> any ideas on how to achieve this?
1. put the code into a script, but do NOT call show() (which blocks):
amirbar[~]> cat mv.py
from enthought.mayavi import mlab
2. Start it as
ipython --gui wx -i mv.py
More information about the IPython-dev