Skip to content

Instantly share code, notes, and snippets.

@jmpinit
Created February 15, 2014 20:02
Show Gist options
  • Save jmpinit/9024534 to your computer and use it in GitHub Desktop.
Save jmpinit/9024534 to your computer and use it in GitHub Desktop.
Simple zsh script to convert IPython Notebook files to PDFs. Requires IPython version >1 and wkhtmltopdf utility.
#!/usr/bin/zsh
ipython nbconvert "$1"
NAME=$(basename "$1" .ipynb)
wkhtmltopdf "$NAME.html" "$NAME.pdf"
rm "$NAME.html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment