Brief tutorial on exporting a Google Colab Notebook to a PDF File using nbconvert. The video goes through two methods: exporting to HTML then to PDF format and exporting directly to PDF format. The code for each can be found below.
Method 1:
!jupyter nbconvert --to html /content/KNN.ipynb
Method 2:
!sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic
!jupyter nbconvert --to pdf /content/KNN.ipynb
The notebook can be found in the "Google Colab Tutorials" folder within the below repo.
GitHub Repo - https://github.com/ad17171717/YouTube...
CONNECT:
LinkedIn: / adrian-dolinay-frm-96a289106
GitHub: https://github.com/ad17171717
Twitter: / dolinayg
Odysee: https://odysee.com/@adriandolinay:0
Medium: / adriandolinay
|-Video Chapters-|
0:00 - Intro
0:13 - Issue with printing notebook to PDF
0:46 - nbconvert package
1:07 - Uploading file to content folder
1:24 - Method 1: Converting the notebook to HTML then printing to PDF format
3:31 - Method 2: Directly converting the notebook to PDF format
5:33 - References