Created
March 23, 2018 20:50
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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