An experiment to have a resumable cloud workspace on Google Colab that persists all your settings and files across sessions.
There are are numerous improvements over the original approach we had proposed before:
- Uses the RAM to store all the user settings and extensions for code-server. This makes the editor snappier compared to disk and reduces the startup time.
- Uses Google Drive to persist the code editor settings across sessions
- Uses a dedicated folder on Google Drive to store all the code files. The editor will resume with all your code files.
- Uses localtunnel instead of ngrok for exposing the editor on web and allowing choice of custom subdomain.
Usage
You can make a copy of this notebook and run it to get started.
Alternatively, on Colab, install the library
!pip install colabcloud -qqq
Then, run the code with a unique subdomain of your choice.
from colabcloud import colabcloud
colabcloud(subdomain='example')
The editor can be accessed on your chosen URL e.g. https://example.loca.lt.