I am using Jupyter Notebook inside an Anaconda virtual environment and I have a notebook with multiple plots using matplotlib and pandas DataFrames with styled formatting.
When I try to export the notebook to PDF via File -> Download as -> PDF via LaTeX, I either get errors or the plots and styling do not appear correctly.
What is the best way to export a Jupyter Notebook with plots and rich formatting to PDF while preserving the layout?
I have already tried:
- Installing
nbconvertandpandocvia conda - Checking if LaTeX is installed (pdflatex not found)
- Tried exporting via command line:
jupyter nbconvert --to pdf MyNotebook.ipynb
I expected the notebook to be exported as a PDF with all plots and formatting intact. Instead, I got an error saying that pdflatex was not found, and the PDF was not generated.