问题
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
回答1:
The jupyterlab-lsp extension offers this as an experimental opt-in feature. It requires JupyterLab 2.2, and after installing the extension (which is threefold: server-side jupyter-lsp
, frontend jupyterlab-lsp
and the language server of your choice - see the linked instructions) you need to enable it in Advanced Settings Editor
→ Code Completion
→ continuousHinting
:
(As one of the authors) I use it every day, and have to admit it is rough on the edges, but works in principle. I will update this answer once it reaches maturity and is no longer considered experimental (contributions welcome!).
来源:https://stackoverflow.com/questions/58445239/jupyterlab-autocomplete-without-tab