Skip to content

Jupyter notebook cell is empty #7158

@ReyRen

Description

@ReyRen

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser:
    chrome firefox
  • Local OS:
    ubuntu20.04
  • Remote OS:
  • Remote Architecture:
  • code-server --version:
    4.95.1 4.95.3 latest

Steps to Reproduce

  1. Use the official image: linuxserver/code-server:latest.
  2. After running the container, install the latest version of Jupyter (2024.11) in the opened VSCode.
  3. Install Anaconda through the terminal in VSCode.
  4. Create a Jupyter notebook.
  5. Clicking "+cell" in the interface shows no response, but the cell is actually added.

Expected

.ipynp file contents can be displayed, and "+code" button effective.

Actual

Image

The actual situation is: whether I create a new notebook or import an existing .ipynb file with content, nothing is visible in the file content interface. However, it can run successfully. Additionally, after clicking "+code" and running it, the output shows a change in the line number, indicating that it works, but the content does not display. It still appears blank.

18:04:10.115 [debug] Handle Execution of Cells 0,1 for Untitled-1.ipynb
18:04:10.120 [trace] Execute Notebook Untitled-1.ipynb. Step 1
18:04:10.120 [trace] Connect to Kernel Untitled-1.ipynb. Step 2
18:04:10.120 [debug] start the kernel, options.disableUI=false for Untitled-1.ipynb
18:04:10.122 [info] Starting Kernel (Python Path: ~/anaconda3/bin/python, Conda, 3.12.7) for 'Untitled-1.ipynb' (disableUI=false)
18:04:10.123 [trace] Creating raw notebook for resource 'Untitled-1.ipynb'
18:04:10.130 [debug] Get Custom Env Variables, Class name = Em, completed in 2ms, has a truthy return value, Arg 1: "Untitled-1.ipynb", Arg 2: "RunPythonCode"
18:04:10.131 [debug] Got env vars from Python Ext in 3ms for ~/anaconda3/bin/python, with env var count 48.
18:04:10.131 [trace] Prepend PATH with python bin for /anaconda3/bin/python
18:04:10.134 [debug] Getting activated env variables, Class name = Id, completed in 6ms, has a truthy return value, Arg 1: "Untitled-1.ipynb", Arg 2: "
/anaconda3/bin/python", Arg 3: undefined
18:04:10.142 [info] Process Execution: ~/anaconda3/bin/python -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
18:04:10.151 [debug] KernelProvider switched kernel to id = .jvsc74a57bd037c9868d6774fc0b561b8ede12979fc2be83ed360e000cad9847bb76a88294f2./anaconda3/python./anaconda3/python.-m#ipykernel_launcher
18:04:10.152 [trace] Registering commtarget jupyter.widget
18:04:10.153 [debug] Controller selection change completed
18:04:10.156 [debug] Launching kernel .jvsc74a57bd037c9868d6774fc0b561b8ede12979fc2be83ed360e000cad9847bb76a88294f2./anaconda3/python./anaconda3/python.-m#ipykernel_launcher for Untitled-1.ipynb in ~/workspace with ports 9006, 9005, 9009, 9007, 9008
18:04:10.167 [info] Process Execution: ~/anaconda3/bin/python -m ipykernel_launcher --f=/.local/share/jupyter/runtime/kernel-v33c1dd7f689a2d47198f39e7b19c7e09418b4a5d3.json
> cwd: ~/workspace
18:04:10.167 [debug] Kernel process 39796.
18:04:10.528 [trace] ipykernel version & path 6.28.0, ~/anaconda3/lib/python3.12/site-packages/ipykernel/init.py for ~/anaconda3/bin/python
18:04:10.800 [debug] Kernel output 39796: To connect another client to this kernel, use:
--existing kernel-v33c1dd7f689a2d47198f39e7b19c7e09418b4a5d3.json
18:04:10.800 [debug] Kernel output 39796:

18:04:10.982 [debug] Waiting for Raw Session to be ready in postStartRawSession
18:04:10.982 [debug] Waiting for Raw session to be ready, status: connected
18:04:10.982 [trace] Raw session connected
18:04:10.982 [debug] Waited for Raw session to be ready & got status: connected
18:04:10.982 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
18:04:10.982 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
18:04:10.982 [debug] Sending request for kernelInfo
18:04:10.992 [trace] Got response for requestKernelInfo
18:04:10.992 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 10ms
18:04:10.994 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
18:04:11.013 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
18:04:11.014 [trace] Started running kernel initialization for Untitled-1.ipynb
18:04:11.014 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
18:04:11.109 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
18:04:11.110 [trace] Determined IPyWidgets Version as 7
18:04:11.110 [trace] Version of IPyWidgets 7 determined after 0.958s
18:04:11.110 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
18:04:11.131 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
18:04:11.131 [debug] Requesting Kernel info
18:04:11.132 [trace] Got Kernel info
18:04:11.132 [trace] End running kernel initialization, now waiting for idle
18:04:11.132 [trace] Waiting for idle on (kernel): 6c96989f-a9d7-441d-a988-91e5d8fc03fc -> idle
18:04:11.133 [trace] Finished waiting for idle on (kernel): 6c96989f-a9d7-441d-a988-91e5d8fc03fc -> idle
18:04:11.133 [trace] End running kernel initialization, session is idle
18:04:11.134 [trace] Registering Kernel Completion Provider from kernel base (Python 3.12.7) for language python
18:04:11.135 [trace] IPyWidgetScriptSource.initialize
18:04:11.135 [info] Kernel successfully started
18:04:11.138 [trace] Connected to Kernel Untitled-1.ipynb. Step 3
18:04:11.138 [trace] executeCell 0. Step 4
18:04:11.138 [trace] executeCell 1. Step 4
18:04:11.139 [trace] Start cell 0 execution @ undefined (clear output)
18:04:11.140 [trace] Cell 0 completed in 0s (start: undefined, end: undefined)
18:04:11.140 [trace] Cell 0 executed successfully
18:04:11.142 [trace] Start cell 1 execution @ undefined (clear output)
18:04:11.142 [trace] Cell 1 completed in 0s (start: undefined, end: undefined)
18:04:11.143 [trace] Cell 1 executed successfully
18:04:15.673 [debug] Handle Execution of Cells 0,1,2 for Untitled-1.ipynb
18:04:15.674 [trace] Execute Notebook Untitled-1.ipynb. Step 1
18:04:15.674 [trace] Connect to Kernel Untitled-1.ipynb. Step 2
18:04:15.674 [trace] Connected to Kernel Untitled-1.ipynb. Step 3
18:04:15.674 [trace] executeCell 0. Step 4
18:04:15.674 [trace] executeCell 1. Step 4
18:04:15.675 [trace] executeCell 2. Step 4
18:04:15.675 [trace] Start cell 0 execution @ undefined (clear output)
18:04:15.676 [trace] Cell 0 completed in 0s (start: undefined, end: undefined)
18:04:15.676 [trace] Cell 0 executed successfully
18:04:15.678 [trace] Start cell 1 execution @ undefined (clear output)
18:04:15.678 [trace] Cell 1 completed in 0s (start: undefined, end: undefined)
18:04:15.678 [trace] Cell 1 executed successfully
18:04:15.679 [trace] Start cell 2 execution @ undefined (clear output)
18:04:15.680 [trace] Cell 2 completed in 0s (start: undefined, end: undefined)
18:04:15.680 [trace] Cell 2 executed successfully

Logs

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions