-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Provide and API that returns the activate environment variables merged with variables from .env files #20663
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
Comments
Does that not work for Jupyter?
That is what we will go with eventually, we're still in the process of deciding on how to expose environment activation. |
Not following you here
I have described in the issue what is not working, not sure what you mean by this question |
Not clear on why Jupyter needs it to return custom env vars as well. We have a separate API for that and merge can be done on Jupyter's end. |
Written above
Written on #20621 (comment)
Both are completely contradicting statements, literally the opposites |
Discussed offline:
Closing this issue for now. |
please could you reopen this issue or create a new one |
Please feel free to close this in favour of a new issue, Else please could we leave this open |
I have created #20678 to track request to provide a more stable API than a custom API just for Jupyter. I see this as the design of the API rather than a bug. We'll make sure to document in the new API on what is to be expected of the return value. |
Today the Jupyter extension is planning on using the custom API
getActivatedEnvironmentVariables
method.However this has a problem: If we call this API for a global python environment with a .env file in the users folder, then
undefined
is returned by the Python extension API.Asks
getActivatedEnvironmentVariables
with any python env and with a .env file in user workspace, then always return the environment variablegetEnvironmentVariables
that seems to not take an interpreter as an argumentThe text was updated successfully, but these errors were encountered: