[IPython-user] Killing a hung program

Fernando Perez Fernando.Perez at colorado.edu
Fri Jun 17 10:48:54 CDT 2005

Scott Kirkwood wrote:
> My knowledge of IPython is not that deep yet.
> If I know I have a program that may hang, how can I save everything 
> beforehand so that I have the same history, etc. when I come back?

You can save the readline history manually by calling (this is undocumented, 
as it's normally only used internally):


You can also keep a log of all commands you run via %logstart.  The docstrings 
for the logging-related functions have details.



More information about the IPython-user mailing list