Re: matplotlib in interactive mode locks when run from subprocess

2008-09-25 Thread Almar Klein
To who cares, I found out what my problem was. Testing interactivity with Tk in a normal Python console gave proper results, just like IPython. Also running "python -i" gives the interactive behaviour I wanted. But running "python -i" from a subprocess did not. I was startled, because it worked ou

Re: matplotlib in interactive mode locks when run from subprocess

2008-09-20 Thread Almar Klein
I think my question was not very clear. I narrowed the problem down to a reconstructable small example, consisting of a python script (a very simple interpreter) and three lines to execute in it: == start simple interpreter file == import os import sys import time def run(): while

matplotlib in interactive mode locks when run from subprocess

2008-09-18 Thread Almar Klein
Hi, In wxpython, I made an interactive shell, which creates a remote python subprocess to do the interpreting. Communication is done via a pipe. The idea is that the python session is an actual process separate from the GUI, which has some advantages, like I can have multiple such shells in my app