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

Vasco vasco+python at tenner.nl
Mon Dec 1 07:47:31 EST 2014


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



More information about the IPython-dev mailing list