Skip to content

Commit ecf5eab

Browse files
authored
Merge pull request #527 from krassowski/update/readme
Describe the pyls fork and IPython Jedi setting in README
2 parents 47c6a89 + b292c3c commit ecf5eab

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Language Server Protocol integration for Jupyter(Lab)
22

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)
46

57
> _This project is still maturing, but you are welcome to check it out, leave feedback and/or a PR_
68
@@ -121,6 +123,7 @@ Use of a python `virtualenv` or a conda env is also recommended.
121123
R ([languageserver](https://github.com/REditorSupport/languageserver)) servers:
122124

123125
```bash
126+
# note: you may want to use our fork of python-language-server instead (see below)
124127
pip install 'python-language-server[all]'
125128
R -e 'install.packages("languageserver")'
126129
```
@@ -138,9 +141,33 @@ Use of a python `virtualenv` or a conda env is also recommended.
138141
[Microsoft list](https://microsoft.github.io/language-server-protocol/implementors/servers/)
139142
should work after [some additional configuration](./CONTRIBUTING.md#specs).
140143

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
142145
many provide additional configuration options.
143146

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+
144171
1. (Optional, Linux/OSX-only) to enable opening files outside of the root
145172
directory (the place where you start JupyterLab), create `.lsp_symlink` and
146173
symlink your `/home`, or any other location which includes the files that you

0 commit comments

Comments
 (0)