talira

Pylance

A performant, feature-rich language server for Python in VS Code

commercial softwarefree

Pylance is Microsoft's language server extension for Python in Visual Studio Code, and the default language support of the Python extension, which installs it alongside. It gives completions, signature help with types, auto-imports, as-you-type errors and warnings, code navigation, semantic highlighting and a type checking mode, works with Jupyter notebooks and multi-root workspaces, and reads pyrightconfig.json or pyproject.toml settings. It's built on the open source Pyright type checker plus closed features Microsoft adds, and is free under Microsoft's licence terms, which limit it to Microsoft's own Visual Studio products.

Problems it solves

  • better Python autocomplete and type errors in VS Code
  • catch Python type errors as I type in my editor
  • auto-import Python modules in VS Code
  • fast Python language support for a large codebase in VS Code

Features

  • completions, signature help and auto-imports
  • as-you-type diagnostics
  • type checking mode
  • semantic highlighting and code navigation
  • Jupyter notebook support
  • pyrightconfig.json and pyproject.toml settings

Limitations

  • Its licence allows use only with Microsoft's Visual Studio products (VS Code, Visual Studio), not with VSCodium, Cursor or other editors1

Alternatives

The same job

These do what Pylance does.

  1. Pyright Static type checker for Python
  2. PyCharm The professional Python IDE for you and your agents
  3. Python extension for Visual Studio Code Microsoft's Python language support for VS Code
  4. Sublime Text Text Editing, Done Right

Compare Pylance with the top 3