Skip to content

Instantly share code, notes, and snippets.

@BlkPingu
Last active April 22, 2023 21:05
Show Gist options
  • Save BlkPingu/a036f8d0a80cb2c7ded06aa351f8ad92 to your computer and use it in GitHub Desktop.
Save BlkPingu/a036f8d0a80cb2c7ded06aa351f8ad92 to your computer and use it in GitHub Desktop.
Create new jupyter notebook
// put this in your .bash_rc or .zshrc to create a new jupyter notebook at your current location
// use: newjp yournotebookname
// creates yournotebookname.ipynb
newjp() {
touch $(pwd)/$1.ipynb
echo "{\"cells\": [],\"metadata\": {},\"nbformat\": 4,\"nbformat_minor\": 2}" > $(pwd)/$1.ipynb
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment