Thursday, November 12, 2026

10 VS Code Extensions for Data Science and Machine Learning Teams

TL;DR

A notebook that runs on one laptop and fails on the next is usually a setup problem, not an analysis problem. This guide lists ten VS Code extensions that give a data team one shared environment, one formatter and readable reviews, and shows how to commit the setup to the repository. Fewer "works on my machine" moments, more time for the actual data.

Pick these three up first:

Say a data scientist hands a notebook to a teammate. It runs on her laptop but fails on his: a different pandas version, an unformatted cell that hides a bug, and a Git diff of the notebook that is a wall of JSON nobody can review. The analysis is fine. The setup around it is not shared.

Visual Studio Code, with the right extensions, gives a data team one shared setup: the same Python tools, the same formatter, readable reviews and the same environment on every machine. This guide lists ten extensions that cover those needs. We checked each listing in October 2026 and give its exact Marketplace name, publisher and extension ID. It also shows how to commit the setup to your repository, so every new teammate gets it with one click.

Key Takeaways

  • Start with Microsoft’s Python and Jupyter extensions. Python also installs Pylance and the Python Debugger by default.
  • Use one formatter and linter for the whole team. Ruff does both and can fix issues on save.
  • Use Dev Containers or Remote – SSH so everyone runs code in the same environment, not on whatever is installed locally.
  • For review and pairing, add GitLens, GitHub Pull Requests and Live Share.
  • Commit .vscode/extensions.json and .vscode/settings.json to the repository. VS Code then recommends the same extensions and applies the same settings for everyone.

Why VS Code for Data Teams?

Jupyter notebooks are excellent for exploring data alone. Teams run into three problems with them: environments drift between machines, notebook files are hard to review in Git because they are stored as JSON with outputs, and code in cells tends to skip the checks that regular Python files get.

VS Code opens .ipynb notebooks and .py files side by side, in the same editor with the same tools. That makes it easier to keep exploration in notebooks and move reusable code into modules that can be linted, tested and reviewed. You do not have to give up notebooks to get there.

The Ten Extensions

Extension Publisher Extension ID What it does for a team
Python Microsoft ms-python.python Core Python support: interpreters, environments, testing
Jupyter Microsoft ms-toolsai.jupyter Runs .ipynb notebooks and interactive windows inside VS Code
Data Wrangler Microsoft ms-toolsai.datawrangler Views and cleans tables, and generates pandas code for each step
Ruff Astral (publisher ID charliermarsh) charliermarsh.ruff One fast linter and formatter for Python files and notebooks
Dev Containers Microsoft ms-vscode-remote.remote-containers Opens the project inside a Docker container defined in the repository
Remote – SSH Microsoft ms-vscode-remote.remote-ssh Works on a shared server or GPU machine as if it were local
GitLens GitKraken eamodio.gitlens Shows who changed each line and why, inline in the editor
GitHub Pull Requests GitHub GitHub.vscode-pull-request-github Reviews and comments on pull requests without leaving VS Code
Live Share Microsoft MS-vsliveshare.vsliveshare Real-time co-editing and shared debugging sessions
Rainbow CSV mechatroner mechatroner.rainbow-csv Colors CSV columns and runs SQL-like queries on CSV files

To install any of them from a terminal, run code --install-extension followed by the ID, for example code --install-extension ms-toolsai.jupyter. Always check the publisher before installing. Several community extensions copy the names of popular ones, and the publisher and ID are what tell them apart.

Python and Jupyter: The Base Layer

Microsoft’s Python extension is the starting point. According to its documentation, it installs three companion extensions by default: Pylance (language support and type checking), the Python Debugger (based on debugpy) and the newer Python Environments extension. Use Python: Select Interpreter from the Command Palette to point every notebook and script at the project’s virtual environment.

The Jupyter extension runs notebooks inside VS Code using any Python environment with the Jupyter package installed. It also bundles keymaps and notebook renderers as an extension pack. For a team, the main gain is that notebooks and modules share the same interpreter, the same linter and the same Git view.

Pinning that environment matters as much as the editor. Our article on moving beyond requirements.txt covers lock files that keep every machine on the same package versions.

Data Wrangler and Rainbow CSV: Looking at Data

Data Wrangler opens a DataFrame or a CSV, Parquet, Excel or JSONL file in a table view with column statistics. In editing mode, each filter, type change or fill you apply generates the matching pandas code, which you can export back into a notebook. The original data is not changed until you export. That is useful for teams because the cleaning steps end up as reviewable code instead of clicks nobody can repeat. It needs Python 3.8 or later and, for a local interpreter, both the Python and Jupyter extensions.

Rainbow CSV is lighter. It colors each column of a CSV or TSV file so misaligned rows stand out, and its RBQL query language lets you run SQL-like queries on a file without loading it into pandas. Once the data is in a DataFrame, a schema check such as the one in our guide to data validation with Pandera is a good next step.

Ruff: One Style for Everyone

Style debates and unused imports waste review time. Ruff is a Python linter and formatter written in Rust by Astral. Its VS Code extension can format files, fix lint issues and sort imports on save, for both .py files and notebooks. The settings below follow the ruff-vscode README:

{
  "[python]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "charliermarsh.ruff",
    "editor.codeActionsOnSave": {
      "source.fixAll": "explicit",
      "source.organizeImports": "explicit"
    }
  },
  "notebook.formatOnSave.enabled": true,
  "notebook.codeActionsOnSave": {
    "notebook.source.fixAll": "explicit",
    "notebook.source.organizeImports": "explicit"
  }
}

Put this in .vscode/settings.json in the repository and every teammate’s editor formats the same way. Keep Ruff’s rules in pyproject.toml so the same checks run in CI.

Dev Containers and Remote – SSH: One Environment

The Dev Containers extension opens a project inside a Docker container described by a .devcontainer/devcontainer.json file in the repository. Everyone who opens the project gets the same Python version, system libraries and extensions. A minimal file looks like this:

{
  "name": "analytics",
  "image": "mcr.microsoft.com/devcontainers/python:3.12",
  "postCreateCommand": "pip install -r requirements.txt",
  "customizations": {
    "vscode": {
      "extensions": [
        "ms-python.python",
        "ms-toolsai.jupyter",
        "charliermarsh.ruff"
      ]
    }
  }
}

Remote – SSH solves a related problem. When the data or the GPU lives on a shared server, it lets you open a folder on that machine and work as if it were local, with the code and the kernel running remotely. Only connect to machines you trust, since the extension runs commands on the remote host.

GitLens, GitHub Pull Requests and Live Share: Working Together

GitLens adds Git history to the editor. Hover over a line and you see who changed it, when, and the commit message. When a feature engineering step looks odd, that context often answers the question before you ask a colleague. Its core features are free; some features need a GitKraken account or paid plan.

GitHub Pull Requests lets you check out a pull request, read the diff and leave review comments in VS Code. Live Share starts a session that teammates join from their own editor to edit and debug together in real time. It is useful for pairing on a tricky bug without screen sharing.

Share the Setup in the Repository

A list of extensions in a wiki goes out of date. VS Code can read the list from the repository instead. Add .vscode/extensions.json:

{
  "recommendations": [
    "ms-python.python",
    "ms-toolsai.jupyter",
    "ms-toolsai.datawrangler",
    "charliermarsh.ruff",
    "ms-vscode-remote.remote-containers",
    "eamodio.gitlens",
    "GitHub.vscode-pull-request-github",
    "mechatroner.rainbow-csv"
  ]
}

When someone opens the folder, VS Code offers to install the recommended extensions. Combined with the shared settings.json and the dev container file, a new teammate can go from cloning the repository to running the first notebook with the same tools as everyone else.

Back to the Notebook That Would Not Run

With this setup, the handoff from the opening goes differently. The teammate opens the repository, accepts the recommended extensions and reopens it in the dev container, so the pandas version matches. Ruff formats the notebook and flags the unused import on save. The pull request shows readable changes, and GitLens tells him who wrote the cleaning step he wants to ask about. The analysis did not change. The team now shares everything around it.

Frequently Asked Questions

Do I Still Need JupyterLab If I Use VS Code?

No. The Jupyter extension runs .ipynb files directly in VS Code with a Python kernel. Some people keep JupyterLab for specific plugins, and the two can open the same notebook files. The team benefit comes from sharing one setup, whichever editor runs the kernel.

Ruff or Black for Formatting?

Ruff’s formatter is designed as a fast replacement for Black with nearly identical output, and Ruff also lints and sorts imports. If your team already uses Black and is happy, there is no need to switch. If you are choosing now, one tool for formatting, linting and imports is simpler to maintain.

Are These Extensions Free?

All ten are free to install from the Visual Studio Marketplace. GitLens has optional paid features on top of its free core, and Live Share needs a Microsoft or GitHub account to start a session. Check each listing for current terms.

How Do I Avoid Installing a Fake Extension?

Install by extension ID, which includes the publisher name, rather than by searching the display name. Check the publisher on the listing and prefer extensions from the tool’s own maintainer. Pinning the IDs in .vscode/extensions.json means teammates install exactly the ones you chose.

Disclaimer: The content on this website reflects the views of contributing authors and not necessarily those of Generative AI Lab. This site may contain sponsored content, affiliate links, and material created with generative AI. Thank you for your support.

Generative AI Lab mascot
Generative AI Lab Editorial Team
Articles researched, written and edited by the Generative AI Lab team. About Generative AI Lab

Must read

- Advertisement -spot_img

More articles

- Advertisement -spot_img

Latest articles