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

Run all and Execute cells above sometimes skip the first cell #16506

Closed
JohnAtl opened this issue Mar 26, 2025 · 8 comments
Closed

Run all and Execute cells above sometimes skip the first cell #16506

JohnAtl opened this issue Mar 26, 2025 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) verified Verification succeeded

Comments

@JohnAtl
Copy link

JohnAtl commented Mar 26, 2025

Type: Bug

Open an jupyter notebook (I use python), and click Run All.
or in a cell, click the up arrow to Execute cells above.
Sometimes the first cell does not run.
Clicking either Run All or Execute... a second time, and all cells will run.

VS Code version: Code 1.98.2 (ddc367ed5c8936efe395cffeec279b04ffd7db78, 2025-03-12T13:32:45.399Z)
OS version: Linux x64 6.13.5-200.fc41.x86_64
Modes:

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i9-13900K (32 x 5500)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 5, 3, 2
Memory (System) 125.48GB (40.05GB free)
Process Argv /home/john/work/Sleep --crash-reporter-id 9af3d6d8-6596-447a-874f-1c746b0e63a4
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
Extensions (36)
Extension Author (truncated) Version
Bookmarks ale 13.5.0
markdown-mermaid bie 1.27.0
catppuccin-vsc Cat 3.16.1
ruff cha 2025.22.0
githistory don 0.6.20
xml Dot 2.5.1
copilot Git 1.292.0
copilot-chat Git 0.25.1
vscode-github-actions git 0.27.1
dvc ite 1.2.27
plantuml jeb 2.18.1
rainbow-csv mec 3.18.0
git-graph mhu 1.30.0
vscode-docker ms- 1.29.4
debugpy ms- 2025.4.1
mypy-type-checker ms- 2025.2.0
pylint ms- 2025.2.0
python ms- 2025.2.0
vscode-pylance ms- 2025.3.2
jupyter ms- 2025.2.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.1.0
tensorboard ms- 2023.10.1002992421
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-containers ms- 0.401.0
remote-ssh ms- 0.118.0
remote-ssh-edit ms- 0.87.0
remote-explorer ms- 0.4.3
material-icon-theme PKi 5.20.0
vscode-xml red 0.28.0
vscode-yaml red 1.17.0
even-better-toml tam 0.21.2
gcp-switch-config tik 2.2.7
pdf tom 1.2.2
vscode-todo-highlight way 1.0.5

(2 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
f27dg485:31264363
968h8231:31271074
jda6j935:31233686
pythoneinst12:31262605
bgtreat:31268568
fh1c7952:31258891
4gafe986:31264396
31787653:31262186
793h1473:31266633
49da9784:31264548

@DonJayamanne
Copy link
Contributor

@JohnAtl Please can you try installing the latest pre-release version of the Jupyter extension in VS Code insiders.
We fixed this issue in the pre-release version, hence the request to test in vs code insiders.
Let me know if that works.

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster notebook-kernel-picker labels Mar 27, 2025
@DonJayamanne
Copy link
Contributor

If you can still repro this issue, then please can you
Please could you enable logging as follows:

  • Open settings & go into Jupyter->Logging
  • Change the value to trace
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel (use the command Jupyter: Show Output to get to the logs).

@DonJayamanne DonJayamanne added the bug Issue identified by VS Code Team member as probable bug label Mar 27, 2025
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode Mar 27, 2025
Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2025
@DonJayamanne DonJayamanne reopened this Apr 3, 2025
@eject80
Copy link

eject80 commented Apr 4, 2025

sorry for my terible english.
i have exactly same issue.

look. first cell is not executed.

Image

every time, when i run my jupyter file first time, it make error.

here is my trace log.

trace_log.txt

@DonJayamanne
Copy link
Contributor

@eject80 @JohnAtl I think this may have been fixed in the latest release.
Please can you install the 2025.3 version with the latest version of VS Code.
Let me know how this goes, please do share the logs if you still run into this.

@DonJayamanne DonJayamanne added notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) and removed notebook-kernel-picker labels Apr 4, 2025
@eject80
Copy link

eject80 commented Apr 4, 2025

@DonJayamanne thanks for you kindness. i am using 2025.2.0 now.

i will waiting 2025.3.

thanks you.

Image

@DonJayamanne
Copy link
Contributor

@eject80 you need to install the latest version of vsvode

@DonJayamanne
Copy link
Contributor

Should work with latest version #16530 (comment)

@DonJayamanne DonJayamanne added the verified Verification succeeded label Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants