Skip to content

Feature: Global and Workspace Python Environment Search Paths #870

@eleanorjboyd

Description

@eleanorjboyd

📋 Description

Add new VS Code settings python-env.globalSearchPaths and python-env.workspaceSearchPaths to allow users to configure custom search paths for Python environments. These settings provide more flexible environment discovery at both global and workspace levels.

✅ Steps to Verify

  1. get the pre-release for python envs ext and python ext

  2. add this setting if you don't see the python icon in the sidebar "python.useEnvironmentsExtension: true`

  3. try out the two new settings and verify they work
    Step 3 is generalized if you know how to do that with your own scenario go ahead but expanded a bit for others:

  4. create a folder within the root of your workspace

  5. create a venv within this folder

  6. go to the python panel, confirm that this env does not get discovered (is not shown in the list)

  7. edit settingpython-env.workspaceSearchPaths to include the path to the folder you made, try with a relative path

  8. reload and confirm the folder is now found

  9. repeat steps 4 and 5 but instead with settingpython-env.globalSearchPaths with absolute path

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityverification-neededVerification of issue is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions