[IPython-dev] notebook startup template (not exec_lines)

Andrew Jaffe a.h.jaffe at gmail.com
Mon Sep 15 11:12:22 EDT 2014


Hi all,

Is there any way to automatically include some boilerplate cell or cells 
in a notebook when it is created?

I know that I can automatically run some commands with
    c.IPKernelApp.exec_lines = [...]
but I would actually like to have the code included in a cell (executed 
or unexecuted) at the top of the notebook (so that users on other 
machines can have the same code in their notebooks).

I thought I saw a related question at some point recently, but I can't 
find it.

Andrew




More information about the IPython-dev mailing list