-
Notifications
You must be signed in to change notification settings - Fork 293
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
Dont set PYTHONNOUSERSITE unless explicitly asked #10124
Conversation
@@ -39,7 +39,7 @@ export class JupyterInterpreterStateStore { | |||
} | |||
const memento = this.memento.get<string | undefined>(key, undefined); | |||
if (memento) { | |||
return Uri.file(memento); | |||
return Uri.parse(memento); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing problems with setting the jupyter interpreter. Caused by the string to URI change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really sucks because if we fail to get this, we clear it. So a lot of people might have had their interpreter cleared we set a long time ago.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S**t happens...
"jupyter.excludeUserSitePackages": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "Add PYTHONNOUSERSITE to kernels before starting. This prevents global/user site-packages from being used in the PYTHONPATH of the kernel.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this is an option in case we break anybody. We can have them set this to try the old way. Telemetry should tell us how many people have this set.
Codecov Report
@@ Coverage Diff @@
## main #10124 +/- ##
=====================================
Coverage 55% 55%
=====================================
Files 203 203
Lines 9243 9244 +1
Branches 1492 1492
=====================================
+ Hits 5092 5093 +1
Misses 3747 3747
Partials 404 404
|
Fixes #9995
Tested this with