Skip to content

Instantly share code, notes, and snippets.

@mathcass
Created March 23, 2018 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathcass/a060a81f58944b74e0a74dce4a2fe76d to your computer and use it in GitHub Desktop.
Save mathcass/a060a81f58944b74e0a74dce4a2fe76d to your computer and use it in GitHub Desktop.
Creates a bookmarklet to automatically name your Jupyter notebook according to https://www.svds.com/jupyter-notebook-best-practices-for-data-science/
// javascript:(function(){// your code here })();
// document.activeElement.value = '2018-03-23-cp-.ipynb'
javascript:(function () {
initials = 'cp';
d = new Date();
dateStr = d.toISOString().slice(0, 10);
notebookTpl = dateStr + '-' + initials + '-.ipynb';
document.activeElement.value = notebookTpl;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment