question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatically activate terminals created by the user when not using the Python command

See original GitHub issue

https://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:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
qubitroncommented, May 24, 2018

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.

0reactions
DonJayamannecommented, Aug 9, 2018

This issue is used to discuss automatically performing action X, your issues is performing 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found