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

Hinterland suggests autocompleting string arguments with a dot #1470

Open Guthman opened 4 years ago

Guthman commented 4 years ago

To reproduce in Python:

print('ABC.')

After typing the dot, the autocomplete dropdown appears, which is not appropriate. I would image there would need to be some constraint put in to restrict Hinterland from doing anything when the cursor is inside a string. Aside from a few exceptions, such as f-strings.

I wanted to see if I could contribute myself, but I saw that the extension is written in js, which I have zero experience with, unfortunately (I'm a Python guy, learning js is on my bucket list).