-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Automatic Environment Activation in Terminal #383
Comments
From @smcstewart on August 22, 2017 9:37 So, if you have a local |
You can use the command, 'Python REPL'. |
From @meichthys on September 11, 2017 13:28 @smcstewart were you referring to an external terminal or the integrated vscode terminal? |
From @smcstewart on September 11, 2017 14:44 @MatthewGieger Yeah, the integrated vscode terminal. The external terminal makes no sense and I can manage that myself. However, if I'm inside an existing Python project, when I open the integrated terminal, it'd be great to automatically source the virtualenv. I thought this was what @threecgreen was getting at. |
From @meichthys on September 11, 2017 14:49 @smcstewart Yes, agreed. I think that was indeed what @threecgreen was getting at. @DonJayamanne Do you know if this has been implemented in any way? Also, what do you mean about using the "Python REPL" command? Could you give a quick example? |
From @fourierserious on December 9, 2017 22:10 In User/Workspace Settings, I use
with the following in my bash.bashrc
|
@brettcannon
Makes sense (less code = easier) to implement this as a generic feature across the board when sending anything to a terminal from our code. |
I say "yes". Basically when it comes to conda, we should run through an activated environment when possible. |
And if people complain we will point out that Anaconda said we should do it this way. 😁 |
From @threecgreen on August 4, 2017 15:57
Current behavior
Every time I open the built-in terminal in VSCode, I have to remember to activate the project's Python environment.
Expected behavior
I'd like
$ source activate my_env
for conda or$ source bin/activate
for virtualenv to run at VSCode terminal startup if I have selected an Python interpreter other than the system default.Copied from original issue: DonJayamanne/pythonVSCode#1139
The text was updated successfully, but these errors were encountered: