Skip to content

Instantly share code, notes, and snippets.

@thorr18
thorr18 / new-notebook()
Created May 8, 2021 23:23
Tired of manually creating ipynb files
# jupyter notebook creation convenience for ~/.zshrc:
new-notebook() {
if [ ! -f "$(pwd)/$1.ipynb" ]; then
echo "{
\"cells\": [],
\"metadata\": {},
\"nbformat\": 4,
\"nbformat_minor\": 2
}" > "$(pwd)/$1.ipynb"
echo "***Created New Notebook at: "