Skip to content

Automatically activate Python virtual environments as you navigate the source code.

License

Notifications You must be signed in to change notification settings

Weidav/python-envy

 
 

Repository files navigation

Python Envy

Visual Studio Marketplace Installs

Automatically activate Python virtual environments as you navigate the source code.

This is useful if you are working with a monorepo that contains sub-projects, modules, libraries or deployments with different Python dependencies. Or perhaps you want to automatically activate a development environment when you click on a test file.

Features

As you can see in the following demo, the active Python environment changes as soon as a file is loaded into the editor. You may want to consider only enabling the extension for specific workspaces.

demo

Requirements

The Python extension must be enabled for this to work.

Extension Settings

This extension has the following settings:

  • pythonEnvy.venv: Location of the virtual environments. Set to .venv by default.
  • pythonEnvy.showNotifications: Show information messages when Python interpreter is automatically switched. Set to true by default.
  • pythonEnvy.enablePep723: Detect PEP 723 inline script metadata and use uv python find --script to activate the appropriate Python interpreter. Requires uv to be installed. Set to true by default.

Known Issues

N/A

Release Notes

[0.1.11]

  • Fix issue #8 introduce option to disable notification when the interpreter gets activated/switched.

About

Automatically activate Python virtual environments as you navigate the source code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%