[IronPython] seperate output

Dino Viehland dinov at microsoft.com
Wed Feb 18 18:12:36 CET 2009

There was this recent thread which might help:


You could alternately replace sys.displayhook and do a similar thing (we'll flow a CodeContext into there if you define the function in C#, you can get the Scope, and route it to the appropriate window).  The downside of displayhook is it will only printing expression statements - so if the user does print 'hi' then it won't work.

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Kamil Dworakowski
Sent: Wednesday, February 18, 2009 7:49 AM
To: users at lists.ironpython.com
Subject: [IronPython] seperate output

Resolver One recalculations happen in a runtime, each recalc in a
seperate ScriptScope.

I am tinkering around adding an interactive shell (sth like python
interacitve interpreter) with access to the last recalc scope. This is
a window with two text boxes, one for input and out for output.
Ideally it would display only the output from the issued commands
there, and they shouldn't go to the 'output pane'. I am currently
using code.InteracitveShell inside the same runtime as the recalcs are
happening, and of course the command results go to the 'output pane'.
Any ideas on how to achieve that?
Users mailing list
Users at lists.ironpython.com

More information about the Ironpython-users mailing list