Skip to content

Feedback/Issues with Kernel Usage #172

Open
@nishikantparmariam

Description

@nishikantparmariam

Description

When kernel usage is opened in right panel and Restart kernel and run all cells button (>>) is clicked, Jupyterlab shows The kernel for ... appears to have died. It will start automatically and below error is printed into console:

jlab_core.e37d4bbc8c984154bc26.js?v=e37d4bbc8c984154bc26:2 Uncaught (in promise) Error: Canceled future for kernel_info_request message before replies were done
    at u.dispose (jlab_core.e37d4bbc8c984154bc26.js?v=e37d4bbc8c984154bc26:2:1006780)
    at jlab_core.e37d4bbc8c984154bc26.js?v=e37d4bbc8c984154bc26:2:1000601
    at Map.forEach (<anonymous>)
    at b._clearKernelState (jlab_core.e37d4bbc8c984154bc26.js?v=e37d4bbc8c984154bc26:2:1000586)
    at jlab_core.e37d4bbc8c984154bc26.js?v=e37d4bbc8c984154bc26:2:1003130

And, below is printed on jupyter-server:

Got events for closed stream None

By looking at the errors is it possible that it might be happening because we query the channel to get kernel info when it is restarting?

Reproduce

  1. Open Jupyterlab and some notebook having cells with say print('Hi')
  2. Open kernel usage from right panel and keep it open
  3. Click Restart kernel and run all cells (>>) button.

The issue is intermittent and is not consistently reproduceble. Doing the last step above multiple times may reproduce the issue.

Expected behavior

The error should not be thrown when right panel is kept open and Restart kernel and run all cells button is clicked.

Context

jupyter-server==1.23.2
jupyter-resource-usage==0.7.0
ipykernel==6.15.1
jupyterlab==3.5.0
ipython==8.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions