You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,16 +191,14 @@ Use of a python `virtualenv` or a conda env is also recommended.
191
191
192
192
Server configurations can be edited using the Advanced Settings editor in JupyterLab (_Settings > Advanced Settings Editor_). For settings specific to each server, please see the [table of language servers][language-servers]. Example settings might include:
193
193
194
-
> Note: for the new (currently recommended) python-lsp-server replace `pyls` occurrences with `pylsp`
195
-
196
194
```json
197
195
{
198
196
"language_servers": {
199
-
"pyls": {
197
+
"pylsp": {
200
198
"serverSettings": {
201
-
"pyls.plugins.pydocstyle.enabled": true,
202
-
"pyls.plugins.pyflakes.enabled": false,
203
-
"pyls.plugins.flake8.enabled": true
199
+
"pylsp.plugins.pydocstyle.enabled": true,
200
+
"pylsp.plugins.pyflakes.enabled": false,
201
+
"pylsp.plugins.flake8.enabled": true
204
202
}
205
203
},
206
204
"r-languageserver": {
@@ -218,9 +216,9 @@ The `serverSettings` key specifies the configurations sent to the language serve
218
216
```json
219
217
{
220
218
"language_servers": {
221
-
"pyls": {
219
+
"pylsp": {
222
220
"serverSettings": {
223
-
"pyls": {
221
+
"pylsp": {
224
222
"plugins": {
225
223
"pydocstyle": {
226
224
"enabled": true
@@ -241,7 +239,7 @@ The `serverSettings` key specifies the configurations sent to the language serve
241
239
242
240
#### Other configuration methods
243
241
244
-
Some language servers, such as `pyls`, provide other configuration methods _in addition_ to language-server configuration messages (accessed using the Advanced Settings Editor). For example, `pyls` allows users to configure the server using a local configuration file. You can change the inspection/diagnostics for server plugins like `pycodestyle` there.
242
+
Some language servers, such as `pylsp`, provide other configuration methods _in addition_ to language-server configuration messages (accessed using the Advanced Settings Editor). For example, `pylsp` allows users to configure the server using a local configuration file. You can change the inspection/diagnostics for server plugins like `pycodestyle` there.
245
243
246
244
The exact configuration details will vary between operating systems (please see the [configuration section of pycodestyle documentation](https://pycodestyle.readthedocs.io/en/latest/intro.html#configuration)), but as an example, on Linux you would simply need to create a file called `~/.config/pycodestyle`, which may look like that:
0 commit comments