14

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
  • 161
  • 1
  • 1
  • 7

1 Answers1

13

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
  • 10,402
  • 3
  • 47
  • 75
  • 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