JupyterLab autocomplete without tab

守給你的承諾、 提交于 2021-01-18 03:56:47

问题


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 EditorCode CompletioncontinuousHinting:

(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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!