jupyter / jupyter/notebook

Shift+Enter fails to set focus inside the next cell if it already exists

Open
#3,916 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Repro:
Type aaa in the first cell.
Press Shift+Enter to create new cell and jump to it.
Type bbb (in the second cell) - everything works as usual

Now repeat that again:

Move cursor inside the first cell
Type aaa in the first cell.
Press Shift+Enter.
Type bbb (in the second cell) - Instead of adding text, Jupyter is now creating new cells. That's because it failed to set the focus inside the cell.

Expected behavior:
I expect Shift+Enter works the same regardless of whether the next cell already exists or not. It should set focus inside the cell editor, not outside.

It's super annoying. It was working properly before (on jupyter I had on other PCs), but now it's not working.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.