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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file colabtunnel-0.0.7.tar.gz.

File metadata

  • Download URL: colabtunnel-0.0.7.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for colabtunnel-0.0.7.tar.gz
Algorithm Hash digest
SHA256 516a7689c8fbd985b043e946bec766256f4a43ee8bf8d41e44def8d48a3d9193
MD5 36014b6cfd453a6478d567f9535c6b15
BLAKE2b-256 2959f2f9290e3f5cc4a1f0b1de08437167bcea29df520c2c33a4874cc02770a9

See more details on using hashes here.

File details

Details for the file colabtunnel-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: colabtunnel-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for colabtunnel-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 034d387565a35c3e1bfefa79e86bb8f8290f53cbfe359fbd73a0c88281d251fa
MD5 b44d7f07c50f750fdf19c01a4d1e32be
BLAKE2b-256 a64bbfa5f70570c3af5c2fae44af65bcbd47809f336c1eb12cc9c4153ff7d664

See more details on using hashes here.

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