Jupyter notebooks for your team.

Try free
← Blog

Colab VS Code Extension: Connect VS Code to a Colab GPU, and What Still Needs the Browser (2026)

Google's Colab extension for VS Code, launched on 13 November 2025 and now at version 0.9.7, runs a notebook open in VS Code on a Colab runtime, free T4 GPU included when one is available. How to connect, what version 0.9.7 adds, why your local files aren't on the runtime, which Colab features still fail (userdata.get secrets), and the other routes from VS Code to Colab.

Fastero Dev TeamFastero Dev Team2026-12-02

We read Google's announcement of the Colab extension for VS Code, its marketplace listing, user guide and known-issues page, and its open issues on GitHub. We downloaded the newest package, version 0.9.7, from Open VSX and listed what it adds to VS Code without installing it, and we ran a short cell that tells a notebook whether it's running on Colab or on your own computer. Connecting needs a Google sign-in, so where we describe the extension at work, the source is Google's own documentation.

The short answer: Google's official Colab extension for VS Code, launched on 13 November 2025, runs a notebook you have open in VS Code on a Colab runtime. Install Colab by Google from the Extensions view (it brings in Microsoft's Jupyter extension), open an .ipynb file, click Select Kernel › Colab, sign in with Google, then choose Auto Connect or New Colab Server to pick a GPU. It works on the free plan, with a T4 when one is available, and on paid plans with faster GPUs. Your local files aren't on the runtime: upload them or mount Google Drive. Colab's userdata.get() secrets still return an error. Checked 2 December 2026.

Fastero

Jupyter notebooks for your team, with nothing to install.

Start a notebook or bring your .ipynb files. SQL cells query your databases with no password in the code, and a notebook runs now or on a schedule. Colleagues open it with their own login; viewers are free.

Try free →

What the Colab extension for VS Code is

Google announced it on its developers blog on 13 November 2025: "Today, we are incredibly excited to announce the launch of the new Google Colab extension for Visual Studio Code." The pitch for VS Code users: "Connect local notebooks to high-powered Colab runtimes, including Pro-tier runtimes with premium GPUs and TPUs." The marketplace's own records date the listing to 10 November 2025, and on 2 December 2026 the page showed "634,482 installs", with version 0.9.7, released on 1 October 2026, as the latest.

It's an extension to Microsoft's Jupyter extension: Colab appears as one more place a notebook's kernel can run. Your .ipynb file stays on your disk and in your Git repository; only the code in its cells runs on Google's machine. The extension's user guide explains the difference from the browser: "In Colab on the web, that simple runtime is actually a connection from your browser, to a single kernel session." In VS Code you pick a server, then a kernel on it.

Two details from the listing: the extension is also on Open VSX, because "For VS Code derivatives the extension is also published to Open VSX", and "This extension collects identifiable usage data and error reports to improve your experience", which you can turn off by setting telemetry.telemetryLevel to off.

How to install the Colab extension and connect VS Code to Colab

  1. Install it. Open the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on a Mac), search for Google Colab and install Colab published by Google. Accept the Jupyter extension if VS Code asks: 0.9.7 needs it and VS Code 1.99.3 or later.
  2. Open or create a notebook (.ipynb) in your workspace.
  3. Click Select Kernel, top right, or run a cell, then choose Colab.
  4. Sign in. Your browser opens Google's sign-in; choose the account, allow access, and you're sent back to VS Code.
  5. Pick a server. The user guide: "Either Auto Connect to a default Colab server or select New Colab Server to provision a specific machine type." A new server asks for the hardware accelerator and a name.
  6. Pick the Python kernel on that server and run a cell.
  7. Remove the server when you're done, with Colab: Remove Server from the command palette or the Colab button above the notebook, so it stops using your allowance or compute units.

Once you're signed in, the status bar shows your current rate of compute-unit use, and a Colab panel in the activity bar shows the server's files and its RAM, disk and GPU use (how much RAM you get is in our Colab RAM guide).

Colab VS Code GPU: what you get on each plan

The GPU comes from your Colab account, not from the extension, so the rules are Colab's. Google doesn't publish them: its FAQ says "Colab does not publish these limits, in part because they can vary over time," and that on the free plan "access to expensive resources like GPUs is heavily restricted."

Plan GPUs you can pick in New Colab Server Worth knowing
Free A T4, when one is available Guides say a free account gets the T4 and paid plans add the A100 and L4
Pay As You Go, Pro Faster GPUs while you have compute units The status bar shows units used per hour
Pro+ All of them, H100 and G4 included Since August 2026 the H100 and G4 have been for Pro+ only

Unsloth's VS Code guide puts it in one line: "GPU availability depends on your Colab plan and current capacity." If only CPU appears, the free GPUs are busy or your allowance is used up for now. Once connected, run !nvidia-smi in a cell to see the card. More on the cards and their prices in our Colab GPU guide, and on time limits in Colab's limits: nothing in the extension's docs changes them, and Google's rule still applies: "Runtimes will time out if you are idle."

What the extension adds to VS Code (version 0.9.7)

The extension's package lists every command and setting it contributes. We downloaded version 0.9.7 from Open VSX and read its manifest with a short script, without installing anything:

import json
import sys
import zipfile
 
pkg = json.loads(zipfile.ZipFile(sys.argv[1]).read("extension/package.json"))
print(pkg["publisher"], pkg["name"], pkg["version"], "needs VS Code", pkg["engines"]["vscode"],
      "and", ", ".join(pkg["extensionDependencies"]))
for cmd in pkg["contributes"]["commands"]:
    if cmd.get("category") == "Colab" and cmd["command"] != "colab.toolbarCommand":
        print(f"  Colab: {cmd['title']}")
blocks = pkg["contributes"]["configuration"]
for block in blocks if isinstance(blocks, list) else [blocks]:
    for key, spec in block["properties"].items():
        if isinstance(spec.get("default"), bool):
            print(f"  {key} = {str(spec['default']).lower()}")

Its output, run with Python 3.14.3 on Windows on 2 December 2026:

google colab 0.9.7 needs VS Code ^1.99.3 and ms-toolsai.jupyter
  Colab: Mount Google Drive to Server...
  Colab: Mount Server to Workspace...
  Colab: Remove Server
  Colab: Upload to Colab
  Colab: Sign Out
  Colab: Open Terminal
  Colab: Import notebook file from URL
  colab.uploading = true
  colab.activityBarContentView = true
  colab.activityBarResourceView = true
  colab.serverMounting = false
  colab.terminal = true
  colab.importNotebookFromUrl = true

So, in 0.9.7: Drive mounting, uploads, the file and resource panels, a terminal on the runtime and importing a notebook from a URL are on by default. Mount Server to Workspace, which shows the runtime's files in VS Code's Explorer, is still experimental and off until you set colab.serverMounting to true. The user guide, last edited on 21 April 2026, still calls the terminal experimental too, but 0.9.7 switches it on. What the terminal can and can't do is in our guide to the Colab terminal.

Colab VS Code and local files

This is the biggest change from working locally. The notebook is local; the kernel isn't. A cell that reads data/sales.csv looks for it on the Colab machine, whose working folder is /content, not your project folder. The extension gives you three ways across:

  • Upload to Colab: right-click files or folders in VS Code's Explorer. It copies them to the server; edit them locally afterwards and you have to upload again.
  • The Colab panel: browse the runtime's /content folder, create, rename or delete files, and download them with Download....
  • Google Drive: mount it on the runtime (below) and read the files from there.

Files on the runtime go when the server does, and downloads have limits: an open issue from October 2026 reports that downloading a file of about 445 MiB fails with "Cannot create a string longer than 0x1fffffe8 characters".

When one notebook runs both locally and on Colab, let it check where it is. This cell tests for Colab's COLAB_ environment variables, as Hugging Face's diffusers library does (testing for a loaded google.colab module gave it the wrong answer in scripts started from a cell), then for the google.colab package:

import importlib.util
import os
import sys
from pathlib import Path
 
 
def on_colab() -> bool:
    """True when this kernel runs on a Colab runtime, whichever editor sent the code."""
    if any(name.startswith("COLAB_") for name in os.environ):
        return True
    try:
        return importlib.util.find_spec("google.colab") is not None
    except ModuleNotFoundError:  # no "google" package installed at all
        return False
 
 
print("Runs on:", "a Colab runtime" if on_colab() else "this computer")
print("Python", sys.version.split()[0], "in", Path.cwd())
print("data/sales.csv found:", Path("data/sales.csv").exists())

We ran it as a notebook cell in a local Jupyter kernel (ipykernel 7.4.0, Python 3.14.3, Windows 11), from a folder holding a small data/sales.csv; we've shortened the folder path:

Runs on: this computer
Python 3.14.3 in C:\Users\...\colab-vscode\demo
data/sales.csv found: True

On a Colab server the same cell should report a Colab runtime, /content and False until you upload the file. We couldn't run that side without signing in, so that's what Google's docs and the extension's file panel describe, not output we captured.

Jupyter notebooks for your team.

Start free →

Google Drive, secrets and other differences from Colab in the browser

Some google.colab features depend on the browser page, and the extension's known-issues page lists which. As of 2 December 2026:

In a notebook In VS Code What to do
drive.mount() Works since version 0.2.1 Colab: Mount Google Drive to Server... adds the cell for you
auth.authenticate_user() Works since version 0.3.0 Nothing
userdata.get() (Secrets) "userdata.get currently returns an error." Type the value into a text box (below)
files.upload(), files.download() Don't work Upload to Colab and Download..., or a file widget
Plotly charts "Currently, Plotly plots don't render." Set pio.renderers.default to "vscode"
sheets.InteractiveSheet() Stuck at sign-in Open the sheet's link and work there

Secrets are the gap that matters most. The workaround on the known-issues page is an ipywidgets text box that puts what you type into an environment variable for the session, so the key never sits in the notebook. In October 2026 the team tested it again, said it still works and closed an issue about it. For the browser version and its alternatives, see our Colab secrets guide; for Drive, our Colab and Google Drive guide.

The terminal has one limit worth knowing before you try to push from it: your SSH agent isn't forwarded, so git push with your local SSH keys doesn't work from it. A Colab engineer called forwarding "feasible" in September 2026, in an issue that's still open.

Other ways to connect VS Code to Colab

A table comparing five ways to use Google Colab from VS Code: the Colab extension runs notebook cells on a Colab runtime and works on the free plan; the Colab CLI with VS Code Remote-SSH puts the whole editor on the runtime; a local runtime runs Colab's browser notebook on your own computer; community SSH tunnels are unofficial and disallowed on free runtimes; and a downloaded notebook runs locally without Colab compute

Ways to use Colab from VS Code, from Google's pages and each project's own listing, checked 2 December 2026.

The Colab CLI and Remote-SSH. Google announced its Colab command-line tool on 5 June 2026; it "bridges the gap between your local terminal and remote Colab runtimes". Its colab ssh --proxy-mode works as an OpenSSH ProxyCommand, and its design doc names VS Code Remote-SSH among the reasons for it. Remote-SSH puts the whole VS Code window on the remote machine, terminal and file explorer included. An entry like this in ~/.ssh/config, from the CLI's docs, makes the runtime a host you can open:

Host <alias>
  ProxyCommand <abs-path-to>/colab ssh --proxy-mode -s <name> [--gpu T4] [--rm]
  User root
  StrictHostKeyChecking no
  UserKnownHostsFile /dev/null

We installed it with pip on Windows; signed out, colab version printed Version: 0.8.0, the release of 10 November 2026, and colab --help lists ssh as "Connect to a Colab runtime via SSH." We didn't connect VS Code this way, which needs a signed-in runtime. Two catches. It reaches only runtimes the CLI made: "A runtime you create in VS Code with the extension won't show up there." And Colab's FAQ still lists "remote control such as SSH shells, remote desktops" among things disallowed on free runtimes without compute units, so on the free plan, stay with the extension.

A local runtime goes the other way: Colab's notebook in your browser, running code on your own machine. "Colab lets you connect to a local runtime. This allows you to execute code on your local hardware." You start Colab's Docker image or Jupyter with Colab allowed as an origin, then paste the address into Connect › Connect to local runtime. Two warnings from Google: "With a local connection, the code you execute can read, write, and delete files on your computer", and "Note that Google Drive mounting on the runtime filesystem will not work with these approaches."

Community SSH tunnels, such as the colab-ssh package with ngrok or cloudflared, were the usual route before the extension. colab-ssh was last released in October 2021, and the FAQ restriction above applies to them too. We'd leave them alone.

For VS Code against a Jupyter server of your own, see running Jupyter on a remote server, and for the editor itself, Jupyter vs VS Code.

Where Fastero fits

Use Colab when the notebook needs a GPU. The notebook that comes after, the one that reads company data every morning and needs a database password, is where Fastero fits. It's an AI and data platform where people and AI agents work together on a team's data, and its notebooks run in its own editor in the browser.

  • Your own .ipynb, uploaded or imported from the project's Git repository, on a per-workspace notebook server nobody has to run, with Python 3.11 and pandas.
  • Secrets reach cells as environment variables, in interactive and scheduled runs alike, which is the part userdata.get() can't do in VS Code today.
  • SQL cells query a saved Postgres, MySQL, SQL Server, Redshift, Oracle or BigQuery connection and hand the rows to Python as a DataFrame.
  • A cron schedule runs the notebook on the server with no browser or editor open.
  • Machines: 1 CPU and 2 GB as standard; on Pro, up to 8 CPUs and 32 GB, from $0.20 an hour for 8 GB to $0.80 for 32 GB, charged by the second from money added to the balance.

If you work in VS Code with Claude Code, Fastero's connector for Claude lets it create, run and schedule notebooks in Fastero; see Claude Code and Jupyter notebooks.

A notebook in Fastero's editor computing solar output against forecast for twelve invented sites with pandas, with the sorted table below the cell

A notebook in Fastero's editor. Inline sample data.

FAQ

Is there an official Colab extension for VS Code?

Yes. Google released the Colab extension for VS Code on 13 November 2025, published by Google on the Visual Studio Marketplace and on Open VSX. Version 0.9.7, from 1 October 2026, was the latest on 2 December 2026.

Is the Colab VS Code extension free?

The extension is free and open source (Apache 2.0), and it works with a free Colab account. What you pay for is Colab itself: faster GPUs and longer runs come with compute units from Pay As You Go, Pro or Pro+.

Can I use a Colab GPU in VS Code?

Yes. Choose New Colab Server, set the accelerator to GPU and pick a type. Free accounts get a T4 when one is available; paid plans add faster GPUs while you have compute units. Run !nvidia-smi in a cell to see what you got.

Can the Colab extension read my local files?

Not directly. The notebook file is local, but its code runs on the Colab machine, whose working folder is /content. Copy files over with Upload to Colab from the Explorer's right-click menu, or mount Google Drive and read them from there.

Does Google Drive work in the Colab VS Code extension?

Yes, since version 0.2.1. Run Colab: Mount Google Drive to Server... and the extension adds the drive.mount() cell to your notebook; once mounted, Drive's files appear in the Colab panel too. Early guides that say Drive doesn't work predate that release.

Why does userdata.get() fail in VS Code?

Colab's Secrets come from the browser page, which isn't there in VS Code, and the extension's known-issues page says "userdata.get currently returns an error." Its suggested workaround is a text box that stores the value you type in an environment variable for the session.

Does the Colab extension work in VS Code forks?

Google publishes it to Open VSX as well as Microsoft's marketplace, "For VS Code derivatives", so editors that install from Open VSX can get it. It needs the Jupyter extension and the VS Code 1.99.3 extension API or later.

Sources

Read on 2 December 2026. The extension's own package (0.9.7, from Open VSX) and the Colab CLI (0.8.0) were checked on Windows 11 with Python 3.14.3.


Try Fastero free: train on Colab's GPUs, then run the everyday notebook next to your team's data, with secrets and a schedule. No credit card required.

Start a notebook next to your team's data.

Python 3.11 with pandas, SQLAlchemy and seaborn, SQL cells on your databases, and scheduled runs on the Free plan. No credit card required.

Follow Fastero on LinkedIn for new articles and examples.