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

Fix notebook kernel selection #13171

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Fix notebook kernel selection #13171

merged 1 commit into from
Dec 14, 2023

Conversation

msujew
Copy link
Member

@msujew msujew commented Dec 12, 2023

What it does

Closes #13167

Fixes quite a few issues which prevented the notebook kernel selection from working correctly. The most major issue was related to the fact that the safe command wasn't transmitted correctly (it was missing its arguments). See changes in the command.ts and command-registry.ts file.

There where also a few issues related to the way we communicated open/focused editors to the plugin host. This was fixed in notebook-editor-widget-service.ts and notebook-documents-and-editors-main.ts.

How to test

  1. Install the Jupyter notebook related extensions.
  2. Select a different notebook kernel. All options should work as expected.

Review checklist

Reminder for reviewers

@msujew msujew added plug-in system issues related to the plug-in system commands issues related to application commands notebook issues related to notebooks labels Dec 12, 2023
Copy link
Contributor

@jonah-iden jonah-iden left a comment

Choose a reason for hiding this comment

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

Code looks good to me and everything seems to work fine.
Tested with different notebook kernels (python installations, venv and conda) and jupyter_server

the extra options in the cell toolbars contributed by jupyter are not yet working. But i don't think thats in the scope of this PR

@msujew msujew merged commit de4c424 into master Dec 14, 2023
14 checks passed
@msujew msujew deleted the msujew/fix-kernel-selection branch December 14, 2023 12:30
@github-actions github-actions bot added this to the 1.45.0 milestone Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commands issues related to application commands notebook issues related to notebooks plug-in system issues related to the plug-in system
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Connecting to an existing Jupyter Kernel not possible
2 participants