---
title: "Python Environments Extension for VS Code- April Update"
description: "The April 2026 Python Environments extension update speeds up VS Code startup by discovering Pipenv, pyenv and poetry environments lazily and by narrowing the default venv search from `./**/.venv` to `.venv` and `*/.venv`."
url: "https://swe.quest/articles/python-environments-extension-for-vs-code-april-update-3ef548ca6ec03e42"
canonical: "https://devblogs.microsoft.com/python/python-in-visual-studio-code-april-2026-release/"
source: "Microsoft for Python Developers"
published: "2026-04-27"
difficulty: "medium"
kind: "Release"
reading_minutes: 2
tags: ["python","developer-tools","performance"]
---

# Python Environments Extension for VS Code- April Update

A post on [Microsoft for Python Developers](https://swe.quest/sources/ms-python.md), published 2026-04-27, 2 min read, Release. Original: [https://devblogs.microsoft.com/python/python-in-visual-studio-code-april-2026-release/](https://devblogs.microsoft.com/python/python-in-visual-studio-code-april-2026-release/)

## Summary

The April 2026 Python Environments extension update speeds up VS Code startup by discovering Pipenv, pyenv and poetry environments lazily and by narrowing the default venv search from \`./\*\*/.venv\` to \`.venv\` and \`\*/.venv\`. The old recursive pattern could hang the PET process for 30+ seconds over Remote-SSH and cause restart loops. Users with venvs nested more than one level deep can add them through \`python-envs.workspaceSearchPaths\`. Other fixes include retrying refresh after a PET crash, correct restoration of the conda base environment, automatic package list refresh by watching site-packages, a project picker for terminals in multi-project workspaces, and a process-scoped PowerShell execution policy so activation scripts run on Windows.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Python](https://swe.quest/tags/python.md) (Languages)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- Python virtual environments ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- VS Code extensions

## Keywords

VS Code, Python Environments extension, Python Environment Tools, conda, poetry, Remote-SSH, PowerShell

## Related posts

- [Making Python in Zed Fun](https://swe.quest/articles/making-python-in-zed-fun-1887e7de7b4c59d3.md): Zed · 2025-10-02 · Easy · 5 min read · Python, Developer tools
  Zed reworked its Python support around a generic per-language toolchain selector backed by Microsoft's python-environment-tools, the same library Visual Studio Code uses for venv detection.
- [Master Docker and VS Code: Supercharge Your Dev Workflow](https://swe.quest/articles/master-docker-and-vs-code-supercharge-your-dev-workflow-6114b48c12630cac.md): Docker · 2025-04-03 · Medium · 9 min read · Containers, Developer tools, Developer productivity, CI/CD
  Docker containers paired with VS Code's Docker extension give every developer an identical environment and remove "works on my machine" bugs.
- [Security notice — malicious version of Anthropic.claude-code (2.1.312 and 2.1.313) identified in the Cursor VS Code Extension Marketplace · Cursor](https://swe.quest/articles/security-notice-malicious-version-of-anthropic-claude-code-2-1-312-and-2-1-313-2c482f0e7cb14708.md): Cursor · 2026-10-29 · Medium · 4 min read · Supply chain security, Threat detection, Incidents & postmortems, Developer tools
  Tampered builds of the Anthropic.claude-code extension (2.1.312 and 2.1.313, macOS and Windows) were served from Cursor's VS Code Extension Marketplace for about 11 hours on Oct 29, 2026.
- [Auto Update Post-Mortem](https://swe.quest/articles/auto-update-post-mortem-73b8588166ea7a94.md): Zed · 2025-09-12 · Medium · 2 min read · Incidents & postmortems, Configuration management, Rust, Testing
  A settings-loading refactor in Zed changed the auto-update setting's type from \`Option\<bool\>\` to \`bool\`, so a missing user value was treated as an explicit \`false\` instead of falling back to the default settings file, silently disabling auto-updates in v0.203.0–v0.203.4 and v0.204.0.
- [Python 3.15](https://swe.quest/articles/python-3-15-dac73d5d8c836912.md): Astral · 2026-10-09 · Medium · 11 min read · Python, Developer tools, Type systems, Performance engineering, Static analysis
  Python 3.15 adds a \`lazy\` import keyword (PEP 810), a stdlib \`profiling\` module with the low-overhead Tachyon sampling profiler, new typing features (closed/extra\_items TypedDicts, TypeForm), \`sentinel\` and \`frozendict\` builtins, and \`\*\`/\`\*\*\` unpacking in comprehensions.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
