-
Notifications
You must be signed in to change notification settings - Fork 302
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
Improvements to IEnvironmentActivationService to use hidden terminals #2614
Comments
I think this could even skip the terminal altogether, and just spawn the activation script directly (all it needs is to ensure that it runs under the same shell that the actual terminal will be). |
Agreed. But using the terminal is easier as we don't need to worry about finding paths to shells. Also this ensures startup scripts are correctly loaded in the shells (something conda requires and initializes when using On a side note, a tty interface is required by either |
I believe this is working. At least it does for me. @IanMatthewHuff didn't you say you had a problem with activation with a new environment? |
@rchiodo no. My issue was different, I'm pretty sure, my issue was with our saving of the last successful jupyter environment I think. |
Thanks. Validated then. |
Today we use
IEnvironmentActivationService
to generate environment variables for activated environments. E.g. when running python code on behalf of user as a background process.We do this today by activating the environment and capturing the environment variables.
For this we get the activation commands (using a default shell) and run it as a process.
A better approach is:
Solves
Discussed with @karthiknadig (helps DAP) @int19h /cc
FYI - I have started some work on this.
The text was updated successfully, but these errors were encountered: