[IPython-user] ipython logfile blocked (logging module)

Tim Michelsen timmichelsen@gmx-topmail...
Tue Feb 17 15:26:07 CST 2009


Hello,
I am employing the python logging module in my script.
I set the logger to write to a log file.

When I run the script (%run myscript.py) everthing works fine.
But when I re-run it, I get a file access error telling that the logfile 
is in use.
I always need to exit Ipython and restart IPython in order to run the 
script again. Is there an option to prevent this?

I have put
logging.shutdown() at the end of my script.

Thanks in advance for your hints.

Greetings
Timmie



More information about the IPython-user mailing list