Notebook: "Run Cells In Section" (notebook.section.runCells) does nothing when invoked via keybinding

Open
#321,157 0 comments 0 reactions 1 assignee View on GitHub

@amunger is already working on this.

Since Jun 12, 2026.

Assessment

This issue has not been assessed yet.

Description

notebook-commands under-discussion

Does this issue occur when all extensions are disabled?: No (python + jupyter notebook enabled)

  • VS Code Version: 1.124.2 (user setup)
  • OS Version: Windows_NT x64 10.0.19045

Steps to Reproduce:

  1. Open a Jupyter notebook that has at least one Markdown heading followed by code cells (so a foldable "section" exists).
  2. Open Keyboard Shortcuts (Ctrl+K Ctrl+S), search for notebook.section.runCells, and assign any key combination (e.g. Ctrl+Alt+R).
  3. Click into a code cell that belongs to a section.
  4. Press the assigned shortcut.
Expected

The cells in the section containing the active cell are executed — the same behavior as clicking the "Run Cells In Section" triangle in the Outline.

Actual

Nothing happens. The command silently does nothing.

Cause

notebook.section.runCells reads its target cell/notebook exclusively from the menu context argument (outline entry or cell context). When invoked via a keybinding or the Command Palette, no such context is passed, so the handler returns early without doing anything.

Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.