Python on the web: executing code as it's processed?
Probably the best approach to something like this to seperate your concerns. Make an ajax-drive "console" type display, that for instance will poll a log file, which is written to in the worker process.
I made a python application that I'd like to deploy to the web.  I'm on a Mac, so I enabled the web server and dropped it in my cgi-bin, and it works fine.  The problem is, the application does some intensive computations, and I would really like to let the user know what's going on while it's executing.
Even though i have print statement scattered throughout the code, it doesn't output anything to my browser until the entire thing is done executing.  Is there any way I can fix this to execute code as it's processed?