21

Pressing tab each time you want to automcomplete seems time-consuming. Ideally, you just type in the first couple of letters and you get a drop down list without pressing tab.

In Jupyter notebook, there were some extensions that you could install to get this functionality. https://github.com/ipython-contrib/jupyter_contrib_nbextensions

Is it possible to get this on JupyterLab?

Thanks

maverick
  • 357
  • 1
  • 2
  • 8

1 Answers1

25

The jupyterlab-lsp extension offers this as an opt-in feature. After installing the extension in JupyterLab 3.0+ (which is two part: jupyterlab-lsp and the language server of your choice - see the linked instructions) you need to enable it in Advanced Settings EditorCode CompletioncontinuousHinting:

enter image description here

Disclaimer: I am one of the authors. This feature is still under development.

krassowski
  • 13,598
  • 4
  • 60
  • 92
  • 1
    How do I get the `code completion` tab in my jupyter lab settings. Is there anything separate needs to be installed? – theProcrastinator May 13 '22 at 12:55
  • Did you install `jupyterlab-lsp` as in the answer? Is it green in `jupyter labextension list`. Also, you need to restart JupyterLab after installation. What is your JupyterLab version? – krassowski May 15 '22 at 11:18
  • 1
    Thanks for the reply. Actually I installed `tabnine` and I think it messed up my extensions and disabled it, that's why I couldn't see `code completion`. But now everything works just fine. BTW thanks for creating this lifesaver extension for `jupyterlab` :) – theProcrastinator May 15 '22 at 15:27
  • Does not work. Still have to press tab. Huge waste of time. – 0x64 Feb 17 '23 at 11:46
  • @0x64 it is quite likely that something is wrong with your configuration or installation, because as you can see byt the number of upvotes it works for many other users. – krassowski Feb 17 '23 at 12:28