ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.22k stars 806 forks source link

Inconsistent autocomplete behavior depending on typing speed #1475

Open lowejohn opened 4 years ago

lowejohn commented 4 years ago

Autocomplete appears to behave differently depending on your typing speed, and behavior is potentially is notebook dependent. Below are some examples of me typing various letters in "print" and you can see the inconsistent behavior. This results in lots of misspellings, as e.g., sometimes "print" autocompletes on the i, sometimes on the n, sometimes on the t, and often not at all.

This appears to be unrelated to the hint delay (which is left at default 20ms for all of these). Even when repeating the same keystrokes at the same speed, the behavior differs. All of the examples below are in an existing, but small, notebook.

Typing "print":

print

Typing "prin":

prin

Typing "pri" (I could only get it to autocomplete once out of all these attempts):

pri

Interestingly, in a brand new notebook I get no autocompletion at all, no matter how fast I type:

Brand new notebook, typing "print":

newprint

rasbot commented 4 years ago

I have the same issue and it is very difficult to manage. It forces me to slow down since I either keep typing after the autocomplete, it autocompletes the wrong variable/function/method, or I can't find the sweet spot to get it to autocomplete what I want. Do you know if autocomplete can be turned off? That at least would be easier to deal with.

phmarch commented 4 years ago

Happens to me too, it's really frustrating. Often, restarting the kernel fix this bug. You can also uncheck Hinterland but you won't have any autocompletion anymore