- Add this repo to your path (or run
install.sh
which does just that).
- Put desired packages, definitions, etc. into the
template.tplx
file in this repo. - Run
convertpdf.sh title src.ipynb
to convert your Jupyter notebook into a PDF with the code (and outputs) inlined, make sure to call it in the directory of the notebook. The title will betitle
, duh. - The resulting PDF with
src.pdf
in the cwd, along with other random latex junk.
This isn't any additional functionality over jupyter, just a convenient wrapper.
Take a typical ipython notebook:
With a cell highlighted, click on the cell menu > cell type > raw.
Then an ipython notebook like this:
Will look like this PDF after running convertpdf.sh "Homework 2" solutions2.ipynb
:
Yes, I hardcoded my name. Change template.tplx
accordingly.