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

Register all kernels in one plugin #107

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

trungleduc
Copy link
Contributor

Closes #106

broadcastChannel?: IBroadcastChannelWrapper
) => {
const kernelPlugin: JupyterLiteServerPlugin<void> = {
id: '@jupyterlite/xeus-kernel:register',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like having a single plugin would prevent disabling some kernels via disabledExtensions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep the current behavior by checking for the PageConfig.disabledExtensions value in the activation function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason we need synchronous XHR is to generate JupyterLab plugins dynamically from the fetch data. Which I do not feel is necessary since these plugins do not provide any token. If it's just about to disable some kernels later, we can have other mechanisms

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, it would be great to remove this synchronous XHR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need the ability to disable kernels?

If users don't want a kernel in the UI, their solution is to not install it in the provided environment.yml file.

@martinRenou martinRenou added the enhancement New feature or request label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xhr is called synchronously
3 participants