jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.77k stars 5k forks source link

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

Open smcinerney opened 8 years ago

smcinerney commented 8 years ago

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

smcinerney commented 7 years ago

Sorry, I'll refile this as a Jupyter issue.

rgbkrk commented 7 years ago

This is a good spot for the issue, assuming you're asking about the use inside the notebook.

ellisonbg commented 7 years ago

Good point, this might be in the kernel implementation of tab completion, but I suspect it is in the frontend.