nbconvert ipynb to pdf code example
Example 1: jupyter nbconvert
$ jupyter nbconvert --to <output format> <input notebook>
Example 2: nbconvert python
$ jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb
$ jupyter nbconvert --to <output format> <input notebook>
$ jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb