📦 jupyterlab-lsp/ jupyter-lsp
Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol
Установка и запуск
Installation
For more extensive installation instructions, see the [documentation][installation-documentation].
For the current stable version, the following steps are recommended.
Use of a python virtualenv or a conda env is also recommended.
-
install python 3
conda install -c conda-forge python=3 -
install JupyterLab and the extensions
conda install -c conda-forge 'jupyterlab>=4.1.0,<5.0.0a0' jupyterlab-lsp # or pip install 'jupyterlab>=4.1.0,<5.0.0a0' jupyterlab-lspNote:
jupyterlab-lspprovides both the server extension and the lab extension.Note: With conda, you could take advantage of the bundles:
jupyter-lsp-pythonorjupyter-lsp-rto install both the server extension and the language server. -
install LSP servers for languages of your choice; for example, for Python (pylsp) and R (languageserver) servers:
pip install 'python-lsp-server[all]' R -e 'install.packages("languageserver")'or from
conda-forgeconda install -c conda-forge python-lsp-server r-languageserverPlease see our full list of [supported language servers][language-servers] which includes installation hints for the common package managers (npm/pip/conda). In general, any LSP server from the Microsoft list should work after some additional configuration.
Note: it is worth visiting the repository of each server you install as many provide additional configuration options.
-
Restart JupyterLab
…
Из README репозитория · полный README на GitHub