Python Auto Venv (Archived)WARNING: This package has been archived due to not having time to support it after the official Python extension to VS Code released an update that removed support for changing the venv path from a local settings file. Anyone who wishes to continue on this project is free to do so under the current licence. This extension will automatically set the Python virtual environment based on the file that you are currently editing. This is useful for workspaces that contain more than one project with their own virtual environment. You can find it in the VS Code marketplace here. FeaturesVirtual Environment SelectionBy opening up a Python script, this extension will figure out the best suitable virtual environment to use based on where the file is located. It effectively solves the issue of intellisense not functioning in a multi-project repository with separate virtual environments. In order to use pipenv for detecting environments, you must first enable it in the settings for this extension. You can also specify a specific path for pipenv if necessary. Please note that this extension operates by changing the Automatic Installation of Virtual EnvironmentsIf you wish for this extension to automatically install virtual environments for you based on detection of for example Once enabled, it will automatically install one of If you wish to enable installation of files with other filenames, you can specify it in the Manual Installation / Uninstallation of Virtual EnvironmentsVirtual environments can also be installed through the command This will work the same as the automatic installation mentioned above, with the exception that it's triggered manually instead. Custom Install/Uninstall CommandIf you wish to use any other method of installing any of these files (or any other files that you might use) you can specify the If you need even more command over which command is being used for installing virtual enviroments based on the file detected, you can specify them in the The same information applies to uninstallation using the properties Default Installation BehaviorThe default installation behavior will depend on the file detected. For any For any file starting with Any other file will be ignored by the default installation behaviour. Default Uninstallation BehaviorThe default uninstallation behavior will depend on the file detected. For any For any file starting with Any other file will be ignored by the default uninstallation behaviour. RequirementsYou must have the Python extension installed with all of its requirements for this extension to work. This extension also makes use of Pipenv if set to preferred or by installing Pipfile's. |