Allow user to set their own custom activation commands for the interpreter
See original GitHub issueUpon creating a terminal, an activation command to activate the current environment is sent to the terminal.
There are often issues like https://github.com/microsoft/vscode-python/issues/8770, where environment is not activated due to extension sending the wrong activation commands.
Example: An activation command used to work with conda x.x.x
, but conda y.y.y
changed something so it is no longer valid. And if the extension does not keep up with the change, activating the environment would fail.
Allow user to set their own activation commands for the interpreter they’re using. Often they know the correct activation commands as you can notice in https://github.com/microsoft/vscode-python/issues/8770.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:39
- Comments:10
Top Results From Across the Web
Settings Reference for Python - Visual Studio Code
Indicates whether to automatically activate the environment you select using the Python: Select Interpreter command when a new terminal is created. For example, ......
Read more >Activating Anaconda Environment in VsCode - Stack Overflow
Simply use. shift + cmd + P; Search Select Interpreter. pyhton : Select Interpreter. Select it and it will show you the list...
Read more >venv — Creation of virtual environments — Python 3.11.1 ...
A virtual environment is created on top of an existing Python ... required to enable the Activate.ps1 script by setting the execution policy...
Read more >Configure a virtual environment | PyCharm Documentation
Select Add Local Interpreter. In the left-hand pane of the Add Python Interpreter dialog, select Virtualenv Environment. Creating a virtual ...
Read more >User Guide — virtualenv 16.7.11 documentation
In a newly created virtualenv there will also be a activate shell script. For Windows systems, activation scripts are provided for the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Came here from #9917. There are a lot of things VSCode doesn’t do right, and activating a Python virtual environment by
source
-ing the activate script instead of usingworkon
is definitely one of them. The postactivate script is just ignored. Bummer! I really hope this feature would allow us toworkon
our virtual environments.+1 Same for me with #14794, it would even allow to use Nix shell