[IPython-User] Start notebook with custom markdown code snippets as default?
Tue Nov 27 13:40:09 CST 2012
Le 27 nov. 2012 à 20:13, Norfeldt a écrit :
> 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
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.
More information about the IPython-User