Skip to content

Jupyter notebook cells get stuck in selection mode after highlighting text in VS Code #17167

@dannasharonpinto-dev

Description

@dannasharonpinto-dev

Environment data

  • VS Code version: 1.106.2 (user setup)
  • Jupyter Extension version (available under the Extensions sidebar): Jupyter v2025.9.1
  • Python Extension version (available under the Extensions sidebar): Python v2025.18.0
  • OS (Windows | Mac | Linux distro) and version: Windows_NT x64 10.0.26200
  • Python and/or Anaconda version: 3.13.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): =N/A
  • Jupyter server running: Local

Expected behavior

Text selection inside a Jupyter notebook cell should behave normally:

---Clicking places the cursor.

---Dragging highlights text only while the mouse button is held.

---Releasing the mouse should return the editor to normal typing mode.

---Scrolling should be stable and predictable.

The cell should remain editable and responsive after highlighting text.

Actual behavior

When selecting or highlighting text inside a Jupyter notebook cell, the cell frequently becomes “stuck” in selection mode. After this occurs:

---Simple clicks continue to highlight text instead of placing the cursor.

---The cell behaves as if the mouse button is permanently held down.

---Typing becomes unreliable or impossible.

---Scrolling can become erratic or “jumpy”.

---Leaving and re-entering the cell does not resolve the issue.

This behavior does not occur in regular text files inside VS Code and appears specific to Jupyter notebook cells.

The problem occurs both intermittently and repeatedly during normal notebook use.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from postertriage-neededIssue needs to be triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions