How to stop the PDF export from cutting off lines
- Download the .ipynb file (say it is downloaded as notebook.ipynb)
- Run the following in a linux shell
sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic
- Run the following command to convert the notebook to a PDF
jupyter nbconvert --to pdf /content/notebook.ipynb
If you are doing this on Colab itself,
- File >> Download >> Download .ipynb
- Upload it to the Files
- Run the following in a code block
%%shell
sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic
jupyter nbconvert --to pdf /content/notebook.ipynb
- Download the newly generated notebook.pdf. CHECK if all the lines are fine.