Setup nbconvert
Jump to navigation
Jump to search
nbconvert
The nbconvert tool[1] (jupyter nbconvert) converts notebooks to various other formats via Jinja templates. The nbconvert tool allows you to convert an .ipynb into
- HTML
- LaTeX
- Reveal JS
- Markdown (md)
- ReStructured Text (rst)
- executable script
- etc
Setup nvconvert on Ubuntu
#Install pandoc
sudo apt-get install pandoc
# install nbconvert with webpdf
sudo -H pip install --upgrade nbconvert[webpdf] pyppeteer
#Running the tests after a dev install above:
pip install nbconvert[test]
py.test --pyargs nbconvert
Usage
General command line usage is,
$ jupyter nbconvert --to <output format> <input notebook>
#allow notebook to export webpdf format
jupyter nbconvert --to webpdf --allow-chromium-download HPCMATE.ipynb
Further details is available at https://nbconvert.readthedocs.io/en/latest/usage.html