I have been doing a lot of work with creating Jupyter notebooks and collaborating with the Google Colab service, Colaboratory or short-form Colab is a free Jupyter notebook environment that requires no setup and runs entirely in the cloud.
With Colab you can write and execute code, save and share your analyses, and access powerful computing resources, all for free from your browser.
I have been looking at ways to include my notebooks in my WordPress site, as a way to show some of the work and help others that getting started. With WordPress you can add HTML code, the obvious choice would have been to save my Colab notebooks as HTML.
Colab at the moment do not have an option to save your Colab notebook to HTML, Jupyter Notebook has an option to ‘Download as’ HTML (or other) format.
I do all my data science work using Google Colab, a notebook is a great way to tell a story and to test out different analytics technics on your dataset. Before you get to the point of doing a dashboard or in my case add the code functionality into a web app. There is a workaround to the missing feature in Colab to save to HTML. Here it is.
- Save your Colab notebook.
- File > Download .ipynb
- On your terminal:
jupyter nbconvert --to <output format> <filename.ipynb>
For more information on
Below is an example of a Jupyter notebook that I been working on for teaching people how to use Jupyter notebook.