[IPython-user] how to run threaded ipython shell via API?
Wed Apr 29 08:06:55 CDT 2009
I am playing with a customized ipython shell a la isympy, which I have
taken as a start. I have tweaked it into what I call isfepy and it runs
pretty well, for example:
In : pb, vec, data = pde_solve('input/poisson.py')
In : view = Viewer(pb.get_output_name())
In : view()
 solves a Poisson equation in 3D by the finite elements, 
constructs a mayavi2 viewer, and  displays the results using the
Now back to the subject - is it possible to make view() non-blocking?
Currently the shell waits till the mayavi2 window is closed.
I have tried running './isfepy -- -pylab' and similar options (-*thread)
which were passed into IPython.Shell.make_IPython(), but it did not do
what I had expected: there were no matplotlib symbols imported, and both
pylab.show(), and mlab.show() blocked. The same holds for isympy by the way.
thanks for ipython, cheers!
PS: to try it (not easy yet!), do:
$ git clone git://github.com/rc/sfepy.git
$ cd sfepy
$ git checkout -b isfepy origin/isfepy
Then follow the sfepy installation instruction (sfepy.org). Mayavi2 (at
least 3.1.0) needs to be installed too.
More information about the IPython-user