On Thu, Sep 27, 2012 at 9:57 PM, Pauli Virtanen <pav@iki.fi> wrote:
> Ideally, Ipython consoles et al. would redirect stdout/stderr file
> handles so that also the output that comes outside from Python land
> would be shown to the user.
This is possible: redirect the underlying file descriptors to local
pipes, then spawn threads to read those pipes and call
sys.std{out,err}.write:
http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/redirecting-standard-io.html
Maybe someone should file a bug on IPython...
-n