[IPython-User] Start notebook with custom markdown code snippets as default?

Matthew Turk matthewturk@gmail....
Tue Nov 27 13:44:33 CST 2012

Hi Matthias,

On Tue, Nov 27, 2012 at 2:40 PM, Matthias BUSSONNIER
<bussonniermatthias@gmail.com> wrote:
> Le 27 nov. 2012 à 20:13, Norfeldt a écrit :
>> A lot of cool features can be added to the notebook by html and javascript
>> like the /quick & dirty/ *autosave function* and *hide input*
>> But is is possible to modify the default empty (start) notebook to have some
>> code snippets included ___________?
>> (Imagine something like having it create a notebook with at markdown at the
>> top with some predefined html and javascript)
> The question is what do you want to do with this template ?
> Using custom.js you could inject pretty much anything in notebook,
> So you could try to detect wether there is only one empty cell and change its content if it is the case.
> Which has the same effect that a template.
> If your goal is to inject Js in the notebook…. the custom.js is there to do that,
> And you could add button to the toolbar or add menu or...
> And this without 'polluting' the ipynb file with preferences that might be only yours.

Is there a way to distribute a custom.js and have it update?  i.e.,
the full path as an argument to something like NotebookApp?



> --
> Matthias
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user

More information about the IPython-User mailing list