Jupyter Notebook has an option to ‘Download as’ HTML (or other) format. Google Colaboratory does not.
Google Colab as a great alternative to using Jupyter Notebooks when extra GPU processing power is needed. To save a Colab project to HTML or PDF format, use this simple work-around:
- Install the nbconvert package.
- Save your Colab notebook.
- File > Download .ipynb
- On your terminal:
jupyter nbconvert --to <output format> <filename.ipynb>
Reference
For more information on nbconvert
: https://github.com/jupyter/nbconvert
I’ve found that the `jupyter nbconvert` conversion does format latex properly, but markdown in the notebook text does not format properly. To get it to actually work, I need to open it in `jupyter notebook`, download it as html, and then print/save as a pdf.
For example the following formats the 1. 2. numbering properly, but misses > as quote block, and * as bullet point.
#### Title
1. First
2. Second
WORDS
> * Step 1
> * Step 2