Skip to main content

Connect to Google Colab VM locally from VSCode

Project description

colab-tunnel

Access Google Colab directly from your local VS Code editor using remote tunnels.

https://user-images.githubusercontent.com/8587189/232783372-8f2a5f83-1e57-42f0-8740-4b7e5901b561.mp4

Usage

You can make a copy of this notebook to get started.

On Google Colab, first install the library and the run the code.

!pip install colabtunnel
from colabtunnel import colabtunnel

colabtunnel()
  1. After running the code, copy the given code, click the GitHub link and paste the code.

image

  1. Paste your unique code on the github link and press "Continue".

image

  1. Open your local VSCode Editor. Install the Remote Tunnels extension if you haven't already installed. Then, open the command prompt and select Remote-Tunnels: Connect to Tunnel

image

  1. You will be shown a list of tunnels. Select the first tunnel name that has online beside it.

image

  1. You will be connected to the virtual machine and can access the folders. Open the /colab folder and store your code there for persistence on Google Drive. The workflow is similar to the Remote SSH plugin

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colabtunnel-0.0.7.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

colabtunnel-0.0.7-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page