Brett Cannon explains the motivation behind PEP 832, a proposal for standardizing Python virtual environment discovery. The core problem is that tools like VS Code have no reliable way to know which workflow tool (uv, Poetry, Hatch, etc.) a project uses, or where its environments are stored. Cannon proposes a `.python-envs` file listing environment paths and a `[workflow]` table in `pyproject.toml` to specify a workflow server protocol (WSP) over JSON-RPC, enabling editors to communicate with any workflow tool in a standardized way rather than requiring bespoke extensions per tool.

6m read timeFrom snarky.ca
Post cover image
Table of contents
The problemsPossible solutionsWhy I care about any of this
1.5K Impressions