|
97 | 97 | "#### conda (minimal python)\n", |
98 | 98 | "\n", |
99 | 99 | "```bash\n", |
100 | | - "conda create -c conda-forge -n lsp 'python >=3.7,<3.8' 'jupyterlab={JUPYTERLAB_VERSION}' 'nodejs>10' python-language-server\n", |
101 | | - "# Also consider: r-languageserver [*]\n", |
102 | | - "source activate lsp\n", |
103 | | - "python -m pip install 'jupyter-lsp={JUPYTER_LSP_VERSION}' --no-deps\n", |
| 100 | + "conda create -c conda-forge -n lsp 'python >=3.7,<3.8' 'jupyterlab={JUPYTERLAB_VERSION}' 'nodejs>10' 'jupyter-lsp-python={JUPYTER_LSP_VERSION}'\n", |
| 101 | + "# jupyter-lsp-python includes both the server extension (jupyter-lsp) and pyls third-party server (python-language-server)\n", |
| 102 | + "# if you swap it with another pre-made bundle, jupyter-lsp-r, you will get the server extension and r-languageserver;\n", |
| 103 | + "# alternatively, use jupyter-lsp and manually install a language server of your choice (see the table below).\n", |
| 104 | + "conda activate lsp\n", |
104 | 105 | "jupyter labextension install '@krassowski/jupyterlab-lsp@{JUPYTERLAB_LSP_VERSION}'\n", |
105 | 106 | "```\n", |
106 | 107 | "\n", |
|
146 | 147 | " 'r-languageserver' \\\n", |
147 | 148 | " 'texlab' \\\n", |
148 | 149 | " 'chktex' \\\n", |
149 | | - " && python3 -m pip install --no-cache-dir --no-deps \\\n", |
150 | 150 | " 'jupyter-lsp={JUPYTER_LSP_VERSION}' \\\n", |
151 | 151 | " && jupyter labextension install --no-build \\\n", |
152 | 152 | " '@krassowski/jupyterlab-lsp@{JUPYTERLAB_LSP_VERSION}' \\\n", |
|
261 | 261 | "%%markdown\n", |
262 | 262 | "#### Install Jupyter[Lab] LSP\n", |
263 | 263 | "\n", |
| 264 | + "##### conda\n", |
| 265 | + "\n", |
| 266 | + "```bash\n", |
| 267 | + "conda install jupyter-lsp={JUPYTER_LSP_VERSION}\n", |
| 268 | + "jupyter labextension install @krassowski/jupyterlab-lsp@{JUPYTERLAB_LSP_VERSION}\n", |
| 269 | + "```\n", |
| 270 | + "\n", |
| 271 | + "##### pip\n", |
| 272 | + "\n", |
264 | 273 | "```bash\n", |
265 | | - "pip install jupyter-lsp={JUPYTER_LSP_VERSION}\n", |
| 274 | + "pip install jupyter-lsp=={JUPYTER_LSP_VERSION}\n", |
266 | 275 | "jupyter labextension install @krassowski/jupyterlab-lsp@{JUPYTERLAB_LSP_VERSION}\n", |
267 | 276 | "```" |
268 | 277 | ] |
|
0 commit comments