Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Pixi PythonNew to Visual Studio Code? Get it now.
Pixi Python

Pixi Python

SheepTAO

|
1 install
| (0) | Free
Pixi Python environment manager for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Pixi Python

Pixi Python for VS Code

Seamless Pixi Python Environment & Package Management for Visual Studio Code

GitHub Release VS Code Marketplace Open VSX CI Status License: MIT


Pixi Python integrates Pixi environments with VS Code's official Python Environments extension, allowing your Pixi environments to appear natively alongside conda, venv, and other environments.

[!NOTE] Pixi Python is an actively maintained fork based on renan-r-santos/pixi-code (v0.2.0), featuring per-file environment auto-resolution, native package inspection, dual-marketplace continuous delivery, and robust multi-platform compatibility.


✨ Features

  • Automatic Environment Discovery: Instantly detects Pixi projects with pixi.toml or pyproject.toml.
  • Dynamic Per-File Environment Resolution: Map file/directory patterns (e.g. tests/** → dev) to automatically switch Python interpreters for different files.
  • Native Pixi Tasks Integration: Auto-discovers Pixi tasks as native VS Code Tasks (Terminal: Run Task...) and provides a quick Command Palette runner (Pixi: Run Task).
  • Native Package Inspection: Full package tree view with explicit (direct) vs transitive (indirect) dependency distinction and package channels (conda / pypi).
  • Pixi Features Support: Discovers and exposes Pixi features (dev, test, lint, etc.) as distinct selectable environments.
  • Interpreter & Terminal Integration: Automatic interpreter selection for editing, running, debugging, and terminal activation.
  • Multi-Platform Safe: Gracefully handles platform-specific environments without interrupting workspace discovery.

⚙️ Extension Settings

Setting Type Default Scope Description
pixi-python.environmentRules string[] [] Resource Map glob patterns to Pixi environment names (e.g. tests/**=dev). Also supports object format in JSON.
pixi-python.pixiExecutable string "" Machine Path to the Pixi binary. Supports ${workspaceFolder} and relative paths. Uses PATH discovery if empty.
pixi-python.searchIgnorePatterns string[] ["**/node_modules/**", ...] Resource Glob patterns to exclude when scanning the workspace for Pixi projects.

Example Configuration

Add this to your project's .vscode/settings.json (or add items directly in the VS Code Settings UI):

{
    "pixi-python.environmentRules": ["tests/**=dev", "train/**=train", "scripts/*.py=dev"]
}

(Object format {"tests/**": "dev"} is also supported for backward compatibility)


⌨️ Commands

Command Identifier Description
Pixi: Run Task pixi-python.runTask QuickPick menu to search and run any task defined in the Pixi project.
Pixi: Run Task in Environment... pixi-python.runTaskInEnvironment Select a task and choose a specific Pixi environment to run it in.

📦 Requirements & Installation

  1. Install Pixi on your system.
  2. Ensure the official Python Environments extension is installed.
  3. Install Pixi Python from the VS Code Marketplace or Open VSX.
  4. Open any project containing a pixi.toml or pyproject.toml.

🛠️ Limitations

  • Environment & Package Mutation: Adding, updating, or removing packages and environments is intentionally managed directly through Pixi's declarative manifests (pixi.toml) or CLI (pixi add, pixi run).

🔍 Troubleshooting

  • Check Logs: Open View → Output and select Pixi Environment Manager from the dropdown.
  • Binary Not Found: Verify pixi is in your system PATH, or configure pixi-python.pixiExecutable.
  • Environments Not Showing: Ensure pixi.toml exists and run pixi install to initialize environment prefixes.

📄 Acknowledgements & License

  • Special thanks to Renan Santos and contributors of pixi-code for creating the original foundation.
  • Licensed under the MIT License.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft