Install sudo apt-get -y install texlive-latex-recommended texlive-pictures texlive-latex-extra sudo apt install latexmk Generate notebook.pdf python3 generate_pdf.py