[IPython-User] query frontend?

Michael Kuhlen mqk@astro.berkeley....
Fri Apr 13 15:35:58 CDT 2012


Hi Brian and Fernando

Thanks for your tips and workflow suggestions. Much appreciated.

> you can keep 'library' code in .py files if you want, and atop a
> notebook you can use
>
> %run mymodule.py
>
> to pull all of those utilities in for further interactive use.
> Since %run does a full execfile(), everytime you run it you get the
> equivalent of a clean reload(), though your expensive loadit step
> won't get done again.

That works very well for me. Thanks for the suggestion.

Mike


On Thu, Apr 12, 2012 at 8:55 PM, Fernando Perez <fperez.net@gmail.com> wrote:
> Hi Michael,
>
> On Tue, Apr 10, 2012 at 7:55 PM, Michael Kuhlen <mqk@astro.berkeley.edu> wrote:
>> Now I'm exploring switching to IPython notebooks.
>
> Brian gave you some useful tips, I just wanted to add a minor note:
> you can keep 'library' code in .py files if you want, and atop a
> notebook you can use
>
> %run mymodule.py
>
> to pull all of those utilities in for further interactive use.  Since
> %run does a full execfile(), everytime you run it you get the
> equivalent of a clean reload(), though your expensive loadit step
> won't get done again.
>
> Cheers,
>
> f
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user



-- 
*********************************************************************
*                                                                   *
*  Dr. Michael Kuhlen              Theoretical Astrophysics Center  *
*  email: mqk@astro.berkeley.edu   UC Berkeley                      *
*  cell phone: (831) 588-1468      B-116 Hearst Field Annex # 3411  *
*  skype username: mikekuhlen      Berkeley, CA 94720               *
*                                                                   *
*********************************************************************


More information about the IPython-User mailing list