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

Thomas Kluyver takowl at gmail.com
Mon Sep 15 12:21:17 EDT 2014


You can probably hack something to do it in custom.js, but we don't have
any notion of a default template for new notebooks.

Thomas

On 15 September 2014 08:12, Andrew Jaffe <a.h.jaffe at gmail.com> wrote:

> 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
>
> _______________________________________________
> 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/20140915/983cbc2d/attachment.html>


More information about the IPython-dev mailing list