1
1
# Language Server Protocol integration for Jupyter(Lab)
2
2
3
- ![ tests] ( https://github.com/krassowski/jupyterlab-lsp/workflows/tests/badge.svg ) [ ![ Documentation Status] ( https://readthedocs.org/projects/jupyterlab-lsp/badge/?version=latest )] ( https://jupyterlab-lsp.readthedocs.io/en/latest/?badge=latest ) [ ![ Binder] ( https://mybinder.org/badge_logo.svg )] ( https://mybinder.org/v2/gh/krassowski/jupyterlab-lsp/master?urlpath=lab%2Ftree%2Fexamples%2FPython.ipynb )
3
+ [ ![ tests] ( https://github.com/krassowski/jupyterlab-lsp/workflows/CI/badge.svg )] ( https://github.com/krassowski/jupyterlab-lsp/actions?query=workflow%3ACI+branch%3Amaster )
4
+ [ ![ Documentation Status] ( https://readthedocs.org/projects/jupyterlab-lsp/badge/?version=latest )] ( https://jupyterlab-lsp.readthedocs.io/en/latest/?badge=latest )
5
+ [ ![ Binder] ( https://mybinder.org/badge_logo.svg )] ( https://mybinder.org/v2/gh/krassowski/jupyterlab-lsp/master?urlpath=lab%2Ftree%2Fexamples%2FPython.ipynb )
4
6
5
7
> _ This project is still maturing, but you are welcome to check it out, leave feedback and/or a PR_
6
8
@@ -121,6 +123,7 @@ Use of a python `virtualenv` or a conda env is also recommended.
121
123
R ([ languageserver] ( https://github.com/REditorSupport/languageserver ) ) servers:
122
124
123
125
``` bash
126
+ # note: you may want to use our fork of python-language-server instead (see below)
124
127
pip install ' python-language-server[all]'
125
128
R -e ' install.packages("languageserver")'
126
129
```
@@ -138,9 +141,33 @@ Use of a python `virtualenv` or a conda env is also recommended.
138
141
[ Microsoft list] ( https://microsoft.github.io/language-server-protocol/implementors/servers/ )
139
142
should work after [ some additional configuration] ( ./CONTRIBUTING.md#specs ) .
140
143
141
- Note: it is worth visiting the repository of each server you install as
144
+ Note 1 : it is worth visiting the repository of each server you install as
142
145
many provide additional configuration options.
143
146
147
+ Note 2: we are developing an improved (faster autocompletion, added features)
148
+ version of the ` python-language-server ` . It is experimental and should
149
+ not be used in production yet, but will likely benefit individual users
150
+ You can check it out with:
151
+
152
+ ``` bash
153
+ pip install git+https://github.com/krassowski/python-language-server.git@main
154
+ ```
155
+
156
+ Please report any regressions [ here] ( https://github.com/krassowski/jupyterlab-lsp/issues/272 ) .
157
+
158
+ 1 . (Optional, IPython users only) to improve the performance of autocompletion,
159
+ disable Jedi in IPython (the LSP servers for Python use Jedi too).
160
+ You can do that temporarily with:
161
+
162
+ ``` ipython
163
+ %config Completer.use_jedi = False
164
+ ```
165
+
166
+ or permanently by setting ` c.Completer.use_jedi = False ` in your
167
+ [ ` ipython_kernel_config.py ` file] ( https://ipython.readthedocs.io/en/stable/config/intro.html?highlight=ipython_kernel_config.py#systemwide-configuration ) .
168
+ You will also benefit from using experimental version of python-language-server
169
+ as described in the Note 2 (above).
170
+
144
171
1 . (Optional, Linux/OSX-only) to enable opening files outside of the root
145
172
directory (the place where you start JupyterLab), create ` .lsp_symlink ` and
146
173
symlink your ` /home ` , or any other location which includes the files that you
0 commit comments