jupyterlab 中是否有 R 的自动完成功能?
Is there any auto-completion for R in jupyterlab?
Kite 只能在 jupyterlab 中自动完成 python 代码。
有没有类似的插件可以让R代码自动补全?
谢谢。
为 jupyterlab 安装 nbextentations。
nbextentations 已经有 lightweigt 自动完成添加-on.lightweigth 但对我来说足够了。
link: https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/install.html
是的,jupyterlab-lsp
提供自动完成功能(以及其他 IDE 功能)。它使用需要您同时安装的语言服务器协议:
- 一个或多个语言服务器(对于 R 使用 R language server),以及
- JupyterLab 的扩展 (jupyterlab-lsp)。
然后在代码完成设置中启用 continuousHinting
选项(通过高级设置编辑器)。
如果您使用通过 conda
安装的 JupyterLab 3.0,它很简单:
conda install -c conda-forge 'jupyterlab>=3.0.0,<4.0.0a0' jupyterlab-lsp jupyter-lsp-r
如果您改用通过 pip 安装的 JupyterLab 3.0:
pip install 'jupyterlab>=3.0.0,<4.0.0a0' jupyterlab-lsp
R -e 'install.packages("languageserver")'
Kite 只能在 jupyterlab 中自动完成 python 代码。
有没有类似的插件可以让R代码自动补全?
谢谢。
为 jupyterlab 安装 nbextentations。 nbextentations 已经有 lightweigt 自动完成添加-on.lightweigth 但对我来说足够了。
link: https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/install.html
是的,jupyterlab-lsp
提供自动完成功能(以及其他 IDE 功能)。它使用需要您同时安装的语言服务器协议:
- 一个或多个语言服务器(对于 R 使用 R language server),以及
- JupyterLab 的扩展 (jupyterlab-lsp)。
然后在代码完成设置中启用 continuousHinting
选项(通过高级设置编辑器)。
如果您使用通过 conda
安装的 JupyterLab 3.0,它很简单:
conda install -c conda-forge 'jupyterlab>=3.0.0,<4.0.0a0' jupyterlab-lsp jupyter-lsp-r
如果您改用通过 pip 安装的 JupyterLab 3.0:
pip install 'jupyterlab>=3.0.0,<4.0.0a0' jupyterlab-lsp
R -e 'install.packages("languageserver")'