jupyter / jupyter/notebook

Shift-Tab completion doesn't work when edit cursor is at the start of the object

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

Description

Shift-Tab completion on an object name only works when you place the edit cursor _inside_ or _after_ the object. Not when it's _at the start of the object_. I think that's contrary to most IDEs. Also, this gotcha is not documented anywhere.

```
import pandas
pd.crosstab
# ^ Put your edit cursor at the start of `pd.crosstab` and press Shift-Tab (on MacOS, Fn-Shift-Tab).
# Nothing happens.
```

Version: Jupyter 4.2.3 on MacOS

Contributor guide

Open the contributing guide

Research direction

Reproduce the provided pandas/pd.crosstab example with the cursor at the start of the object and press Shift-Tab. Trace the Jupyter Notebook Shift-Tab completion behavior, then verify that completion works at the object start and that the gotcha is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.