[IPython-dev] quick way to reset & run a program

Allen Fowler allen.fowler@yahoo....
Thu Feb 26 15:46:46 CST 2009


> > Is there a quick/easy way to reset the interpreter's state, and then run an 

> external file?
> >
> > Basically I'm looking for a quicker way to execute: "%reset, confirm [yes], 
> %run". (Optional clearing the cached output history. )
> 
> Not out of the box, but writing a little magic to do this is and
> installing it in your home dir is pretty easy.  Unfortunatley you
> can't quite just make your magic do 'reset -y, run' because %reset
> asks unconditionally.  But %reset is small enough (see magic_reset in
> Magic.py) that you can simply copy its contents into your own personal
> %rrun and then have that call %run.  Let us know if you have any
> problems with this and need further help.
> 
> 


Sounds like fun.    :) 

Can you point me to the relevant docs?


I am a new ipython user, so out of curiosity, what kind of ipython work flows do people use to help develop software?

Thank you,
:)



      



More information about the IPython-dev mailing list