к каталогу

📦 jupyterlab-lsp/ jupyter-lsp

Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol

Открыть на GitHubобновлён 1мес назад
Звёзды
2.0k
Форки
158
За неделю
За месяц
Рост %
Язык
TypeScript

Установка и запуск

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.

  1. install python 3

    conda install -c conda-forge python=3
    
  2. 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-lsp
    

    Note: jupyterlab-lsp provides both the server extension and the lab extension.

    Note: With conda, you could take advantage of the bundles: jupyter-lsp-python or jupyter-lsp-r to install both the server extension and the language server.

  3. 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-forge

    conda install -c conda-forge python-lsp-server r-languageserver
    

    Please 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.

  4. Restart JupyterLab

Из README репозитория · полный README на GitHub

Категории

Теги

autocompletionipythonjulia-languagejupyterjupyter-labjupyter-notebookjupyterlabjupyterlab-extensionlanguage-server-protocollinterlspnotebooknotebook-jupyterr