Colaboratory: How to install and use on local machine?

From this Github link, it seems that Google Colab may not be (or remain) opensource.

From whatever I have hunted for, the repo is here:

git clone https://github.com/googlecolab/colabtools.git
cd colabtools
python setup.py install

And then check if you have it installed :)

pip list | grep colab
google-colab                       0.0.1a1

Alternatively if you want a wheel (will be put inside dist folder), you shall do

python setup.py bdist_wheel