Skip to content
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

Merged
merged 5 commits into from
Nov 17, 2021
Merged

Conversation

DonJayamanne
Copy link
Contributor

@DonJayamanne DonJayamanne commented Nov 17, 2021

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).

@DonJayamanne DonJayamanne requested a review from a team as a code owner November 17, 2021 19:44
}
}

@debounceAsync(500)
@swallowExceptions('Failed to pre-warm daemon pool')
private async PreWarmDaemonPool() {
if (!this.extensionChecker.isPythonExtensionActive) {
if (!this.extensionChecker.isPythonExtensionActive || this.rawSupported.isSupported) {
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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?

Copy link
Contributor

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?

@DonJayamanne DonJayamanne requested a review from rchiodo November 17, 2021 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants