Is there any auto-completion for R in jupyterlab?

Viewed 1634

Kite can only auto complete python code in jupyterlab.

Is there a similar plug-in that allows R code to be automatically completed?

Thanks.

2 Answers

Yes, jupyterlab-lsp offers auto-completion (along other IDE features). It uses Language Server Protocol which requires you to install both:

and then to enable continuousHinting option in Code Completion settings (via Advanced Settings Editor).

If you use JupyterLab 3.0 installed via conda it is as simple as:

conda install -c conda-forge 'jupyterlab>=3.0.0,<4.0.0a0' jupyterlab-lsp jupyter-lsp-r

If you use JupyterLab 3.0 installed via pip instead:

pip install 'jupyterlab>=3.0.0,<4.0.0a0' jupyterlab-lsp
R -e 'install.packages("languageserver")'

enter image description here

Related