Install Pandoc
After that you need to have XeTex installed on your machine:
- Linux : TeX Live
- Mac : MacTex
- Windows : MikTex
Install nbconvert and pyppeteer
pip install nbconvert
pip install pyppeteer
Now we can convert an ipynb file to to PDF via HTML or via Tex.
jupyter nbconvert --to webpdf --allow-chromium-download filename.ipynb
or
jupyter nbconvert --to pdf filename.ipynb