Skip to content

Converts colab notebooks to pdfs πŸ“™ πŸ‘‰ πŸ“„

License

Notifications You must be signed in to change notification settings

hurshd0/colab_notebook_to_pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Converts Colab Notebooks πŸ“™ to PDFs πŸ“‹

Simple utility function that lets you convert your colab notebook(s) to PDF(s). Just give it a notebook file name or notebook regex pattern and it will convert it for you.

Usage

  1. Verify the notebook you want to convert is executed and saved. πŸ”

  2. Copy & Paste the below code in new colab notebook or new code cell of the notebook you want to convert.

  3. Replace the r"sample_notebook\.ipynb" with your notebook name or regex pattern.

!rm -rf colab_to_pdf.py
!wget https://raw.githubusercontent.com/hurshd0/colab_notebook_to_pdf/master/colab_to_pdf.py
from colab_to_pdf import colab_to_pdf
colab_to_pdf(r"sample_notebook\.ipynb")

CHANGELOG

  • 09/18/20 - Fixed bug when regex pattern fails to find notebooks, removed old nbconvert templates if you are re-running the code