[IPython-dev] [IPython-User] Standard cells at the beginning of a new ipython notebook

Jacob Vanderplas jakevdp at cs.washington.edu
Mon Dec 1 10:04:10 EST 2014


Hi,
Adrian Price-Whelan has a macrocell extension that does something like
this: https://github.com/adrn/macro-cell
  Jake

 Jake VanderPlas
 Director of Research – Physical Sciences
 eScience Institute, University of Washington
 http://www.vanderplas.com

On Mon, Dec 1, 2014 at 4:47 AM, Vasco <vasco+python at tenner.nl> wrote:

> Hi Kirstie,
>
> On 01-12-14 12:48, Kirstie Whitaker wrote:
> > Hi IPythoners,
> >
> > I have a few standard cells that I like to put at the beginning of each
> > new notebook. Mostly they're standard imports and a few definitions that
> > I use a lot. (For example the first cell is always: %load_ext
> > autoreload, %autoreload 2, %matplotlib inline).
> >
> > Does anyone have any good suggestions for how to have this appear
> > automatically in a new notebook? At the moment I just open an old one
> > and copy over each cell individually....but it seems like maybe there's
> > a better way....
> One solution is to create a new template notebook, and copy that whole
> notebook around (In the filebrowser I use, I can select new
> file->Ipython notebook).
>
> Vasco
> Ps. The ipython-user list is not in use anymore. There is now only 1
> ipython userlist: ipython-dev at scipy.org
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141201/e8d75256/attachment.html>


More information about the IPython-dev mailing list