-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
PR: User environment variables to take precedence for IPython Console kernel #23761
base: master
Are you sure you want to change the base?
Conversation
53aeaf7
to
9ddfe74
Compare
@spyder-ide/core-developers, I'd like your feedback because I think we should clarify what Currently, In the specific case of this PR and possibly #23582, if the So should we also retrieve the environment variables from |
Also, should we consider using a subprocess script like we do for posix? Getting user (or system) variables from the registry does not resolve variable references, e.g. |
Should Spyder get up-to-date environment variables? or should we require Spyder to restart to do this? The latter is much simpler but what do other IDEs do? |
Yep, I think that's what we should do on Windows.
What are the implications?
Using a script would make things more complicated on Windows. Instead, we could replace
I think a restart shouldn't be required but I don't know what other IDEs do. |
Currently, the (Windows only)
I think this is also preferable to a script.
For context, our current setup only retrieves up-to-date environment variables
This is why I bring up the idea of not getting up-to-date environment variables on-demand. Then we could rely on |
Ok, I see. Then
Agreed.
That depends on users' expectations. As a user, I'd expect that changes to PATH, for instance, are picked up by Spyder without a restart. Otherwise, doing several adjustments to that variable (e.g. when trying to run Cuda code) would be very cumbersome. |
Description of Changes
Ensure that user environment variables supersede Spyder runtime environment variables when starting the IPython Console kernel.
Issue(s) Resolved
Fixes #23711