Skip to content

Improve setting up deactivate command in case of virtual environments #22448

Description

@karrtikr

Part of #20950

Instead of asking users to edit their .bashrc, put the command in PATH so it's automatically picked up. This is currently blocked on microsoft/vscode#197187.

Activity

  1. karrtikr commented on Nov 8, 2023

    @karrtikr
    Author

    It's not ready to be verified until microsoft/vscode#197187 is fixed. Also blocked on microsoft/vscode#197768.

  2. karrtikr commented on Nov 22, 2023

    @karrtikr
    Author

    Verification steps:

    • Use Powershell on Windows
    • Create a Python virtual environment using Create environment command
    • Open terminal, make sure .venv created is activated:
    python -c"import sys;print(sys.executable)"
    
    • Run "deactivate" command
    • Print sys.executable again to make sure venv is deactivated
  3. locked as resolved and limited conversation to collaborators on Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions