[IPython-user] Gtk (and specifically matplotlib) support in ipython

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Fri Aug 13 12:29:24 CDT 2004


>>>>> "FP" == Fernando Perez <Fernando.Perez at colorado.edu> writes:

    FP> The code already works fairly well, with one significant
    FP> caveat: any process started via os.system() (whether directly
    FP> or implicitly using !cmd) will hang after a while.  I have
    FP> currently no solution for this, but will welcome any ideas.
    FP> Note that the problem seems to only affect long-running GUI
    FP> apps, simple '!grep foo *' type things appear to function just
    FP> fine.  But something like '!gv foo.eps &' will open gv, and
    FP> after about 30 seconds the gv instance stops responding to all
    FP> keyboard/mouse input.

You probably already have tried this but how about using
os.spawnl(...).  Here a simple use case:

 pid = os.spawnl(os.P_NOWAIT, script, script)

cheers,
prabhu




More information about the IPython-user mailing list