Automatically activate terminals created by the user when not using the Python command
See original GitHub issuehttps://github.com/Microsoft/vscode/issues/46192
This world allow us to automatically activate environments.
Use the following event:
const myTerm = createTerminal();
window.onDidOpenTerminal(t => {
if (t !== myTerm) {
// do stuff here
}
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Automatically activating conda environment in integrated ...
Open Powershell and run as Administrator, execute the following command conda config --set auto_activate_base true. Then restart VS Code, ...
Read more >1. Command line and environment — Python 3.11.1 ...
When called with standard input connected to a tty device, it prompts for commands and executes them until an EOF (an end-of-file character,...
Read more >Run Python Script – How to Execute Python Shell Commands ...
How to Use the Python Shell ... To start the Python shell, simply type python and hit Enter in the terminal: C:\Users\Suchandra Datta>python...
Read more >Python Script Automation Using CRON on Mac - JC Chouinard
The simplest way to do automation with Python is by using crontab (cron) on Mac or Task Scheduler on Windows. In this guide,...
Read more >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 >
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
I was extrapolating from my own experience that a polyglot developer that only uses Python for a part of their app would be annoyed that we always activate Python in the terminal and we don’t have an easy way to say “create me a terminal without python”. At the same time, many people have asked to automatically activate Python in the terminal (or are confused when it doesn’t happen).
Thinking more about it… more would probably benefit from a default activated terminal than would be annoyed, so it’s probably better tradeoff to type “deactivate” when you don’t want the activated python terminal. In case it really disrupts people’s workflows or causes issues, we can add an option to disable the feature and they can fall back to using the “Python: Create Terminal” command.
This issue is used to discuss
automatically performing action X
, your issues isperforming action X doesn't work
. I.e. they are completely separate issues and best discussed separately without adding noise to this issue that would just confuse others.