Access Google Colab directly from your local VS Code editor using remote tunnels.
Please use the tool at your own risk as it might break Google Colab's TOS and can get your account limited / banned.
On Google Colab, first install the library and the run the code.
!pip install -U git+https://github.com/Tuchsanai/colab-connect.git
from colabconnect import colabconnect
colabconnect()
code --install-extension ms-python.python
code --install-extension ms-toolsai.jupyter
code --install-extension github.copilot
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz
tar -xf vscode_cli.tar.gz
./code tunnel user login --provider github
./code tunnel service install --accept-server-license-terms
sudo loginctl enable-linger $USER
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz
tar -xf vscode_cli.tar.gz
./code tunnel user login --provider github
./code tunnel --no-sleep --accept-server-license-terms --random-name