- Run this script and enjoy a free GPU/High Memory machine courtesy of Google.
- Adapted from this stackoverflow answer which was adapted from this gist
- This is useful if:
- You want a Free GPU
- You want a more robust dev env than the collab notebooks. (i use this to run juptyer lab instances)
- You have low memory on your computer so even running Google Collab in browser is slow.
- Create an NGROK account
- Create file
.env
file with the following fields and upload it to your collab notebook:
authtoken=NGROK AUTH TOKEN
instancepw=SSH INSTANCE PASSWORD
- Open up a collab notebook and clone this repository
- To launch an SSH instance
- run
!bash bootup.sh
- run
- To launch an SSH instance with a bootstrap script.
- run
!bash bootup.sh [PATH TO BOOTSTRAP SCRIPT]
- run
- Use ssh commands outputted in the collab notebook cell.
- Add support for using google drive file system.
- Add bootstrap for Spark dev
- Look into ways to mitigate collab notebook shutdown
- Add example collab notebook