How to save Jupyter Notebook program as pdf file?

  Uncategorized
# install package
sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic
export PATH=/Library/TeX/texbin:$PATH

# Example:
cd /media/Data1/Climada/isimip3/originalcode/code/ipynb
jupyter nbconvert FIGURE1.ipynb --to pdf
jupyter nbconvert FIGURE34678.ipynb --to pdf

cd /media/Data1/Climada/isimip3/
ls *.ipynb
jupyter nbconvert FIGURE2andFigure9_Figure12Figure13.ipynb --to pdf
jupyter nbconvert FIGURE10.ipynb --to pdf
jupyter nbconvert FIGURE11.ipynb --to pdf
jupyter nbconvert Figure5_ISIMIP3_ensemble_mean_ssp126_ssp370_ssp585.ipynb --to pdf