Abstract away Colab login, repo updates and dependency installation
In https://gitlab.ewi.tudelft.nl/mmc-tudelft/education/MMSRNotebooks/-/issues/41 we updated the steps specific to Colab that focus on mounting the drive, setting up the repo, optionally pulling and updating it and installing dependencies (in case of Analytics 2).
Discussed in https://gitlab.ewi.tudelft.nl/mmc-tudelft/education/MMSRNotebooks/-/issues/29 we're aiming to merge Colab and local notebooks. As listed in https://gitlab.ewi.tudelft.nl/mmc-tudelft/education/MMSRNotebooks/-/issues/29#note_887356, the main differences between notebooks relate to those exact steps outlined above. Whilst we can just tell students not to run those 5-10 cells when running on a VM, it would be better to abstract away all the code into just 1 or 2 short cells, possibly hiding all the plumbing in a set of short scripts contained under this repository.
The functionality should include:
- Mounting the drive
- Optionally cloning the repo
- Changing working directory to the repo
- Optionally pulling the repo
- Optionally installing all the dependencies
We therefore first have to implement this functionality under this repo and then adjust existing notebook code to use this code (https://gitlab.ewi.tudelft.nl/mmc-tudelft/education/MMSRNotebooks/-/issues/46).