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

Kernel output extension: Error: Session has no kernel when panel is not yet created #278

Open
cmarmo opened this issue Jan 31, 2025 · 0 comments · May be fixed by #279
Open

Kernel output extension: Error: Session has no kernel when panel is not yet created #278

cmarmo opened this issue Jan 31, 2025 · 0 comments · May be fixed by #279
Labels
bug Something isn't working

Comments

@cmarmo
Copy link

cmarmo commented Jan 31, 2025

Description

It is my understanding that the command execute in the kernel output extension should open a new kernel output panel if it is not there yet:
https://github.com/jupyterlab/extension-examples/blob/203393a2172599c27988c0e23b9a107b8cf9f9c5/kernel-output/src/index.ts#L83-85

Unfortunately, the command execution crashes with

Error: Session has no kernel.

Reproduce

  1. Open a notebook
  2. Execute the cells
  3. Click on "Kernel Output" then "Contact Kernel and Execute code"
  4. Enter the command, then click on "Execute"

The panel is not open and the error is thrown in the development console

Image

Screencast.From.2025-01-31.18-19-10.mp4

My impression is that the createPanel promise is not fulfilled when the extension tries to execute the command.
I have tried some solutions on my side but I'm not very good with promises.... 😅

Expected behavior

If my understanding of the code is correct, the panel should be created and the output displayed.

Context

  • Operating System and version: Linux Fedora 41
  • Browser and version: Firefox 134.0.1
  • JupyterLab version: Version 4.3.5 installed in a mamba environment
  • Kernel output extension: current version on main
@cmarmo cmarmo added the bug Something isn't working label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant