Colab and Github Workflow¶
A Colab notebook can be opened from Github, but it will open in Colab as a new read-only version rather than the original notebook.
To illustrate, here is an example notebook created in Colab:
Here is a copy of the notebook saved to an example Github repository:
And here is the read-only copy that results from clicking the “Open in Colab” link in Github:
Hence, the best way to work on a notebooks and keep it updated on Github is to open it from Google Drive and save a copy to Github each time you are finished working. This should be your workflow:
Create a notebook in Google Colab.
Work on your notebook.
Save a copy to your team’s Github repository and close the notebook.
Open the notebook from Google Drive.
Return to step 2.