-
Notifications
You must be signed in to change notification settings - Fork 300
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
Don't look for jupyter at startup with raw kernels #8291
Conversation
} | ||
} | ||
|
||
@debounceAsync(500) | ||
@swallowExceptions('Failed to pre-warm daemon pool') | ||
private async PreWarmDaemonPool() { | ||
if (!this.extensionChecker.isPythonExtensionActive) { | ||
if (!this.extensionChecker.isPythonExtensionActive || this.rawSupported.isSupported) { |
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.
I'm confused by this? Why not prewarm the daemon pool when using raw? We still use daemons for raw.
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.
Here we're attempting to pre-warm the daemon pool against the python env that starts jupyter.
When using raw, we pre-warm against the python env that's associated with the kernel.
Its possible that the kernel selected is not the same as the python env used to start jupyter,
If using non-raw, then it makes sense
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.
I guess the problem then is nobody knows (at that point in the code) why raw isn't allowed. Can you put a comment explaining why?
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.
Or some other way to make it obvious this daemon pool is just for jupyter?
Part of #7849
For #8350
We pre-warm daemons (with jupyter interpreter) and look for Jupyter when we're dealing with raw kernels.
This is totally unnecessary, the only time jupyter interpreter is used is when exporting & the like (its ok for that to be fractionally slower than slowing all of extension & kernel startup).