[IPython-dev] Create New Notebook from Command-line

Thomas Kluyver takowl at gmail.com
Sat Dec 6 17:17:33 EST 2014


On 6 December 2014 at 13:51, Zoltán Vörös <zvoros at gmail.com> wrote:

> A comment along similar lines: wouldn't it make sense to allow the user
> to automatically execute python code before a notebook is loaded,
> somewhat similarly to what is done on the javascript side with the
> content of  profile/startup/custom?
>
> Often, I find myself in a similar situation: when the name of a notebook
> is of a particular form, I want to create a data folder for that
> notebook, want to have a specific first cell, etc.
>

We have startup files which are executed whenever an IPython kernel is
started, including on opening a new notebook. By design, however, the
kernel does not know the name of the notebook.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141206/a482129d/attachment.html>


More information about the IPython-dev mailing list