Skip to content

Handle missing Jupyter kernelspecs gracefully - #219

Draft
Erotemic wants to merge 1 commit into
mainfrom
review/notebook-kernel-robustness
Draft

Handle missing Jupyter kernelspecs gracefully#219
Erotemic wants to merge 1 commit into
mainfrom
review/notebook-kernel-robustness

Conversation

@Erotemic

@Erotemic Erotemic commented Jul 12, 2026

Copy link
Copy Markdown
Owner

What changed

  • Distinguishes installed Jupyter libraries from an available executable Python kernel.
  • Allows notebook-file construction without a registered kernelspec.
  • Skips only execution-dependent tests when the native kernel is unavailable.

Root cause

The test suite assumed that importing Jupyter packages implied a registered python3 kernelspec, causing NoSuchKernel failures in otherwise valid environments.

Validation

  • 4 notebook tests passed.
  • mypy, ty, fatal flake8 selectors, and git diff --check passed.

Distinguish installed Jupyter libraries from an executable kernel, allow notebook construction without a registered kernelspec, and skip only execution-dependent tests.

Co-authored-by: GPT-5.6 High <noreply@openai.com>
@Erotemic
Erotemic force-pushed the review/notebook-kernel-robustness branch from 6f95fd0 to 2797501 Compare July 12, 2026 03:44
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.

1 participant