Skip to content

Commit ffb3d8f

Browse files
authored
added a bit on restart and warning that it is easy to break things
1 parent ccf5b9b commit ffb3d8f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,15 @@ jupyter labextension install @krassowski/[email protected]
158158

159159
### Configuring the servers
160160

161-
#### I want do hide specific diagnostics/inspections/warnings
162-
163161
We plan to provide a configuration GUI at some time, but in the meantime, you can use the instructions for the specific servers as described on their websites (see the table in [LANGUAGESERVERS.md](./LANGUAGESERVERS.md) for links).
164162

163+
#### I want do hide specific diagnostics/inspections/warnings
164+
165165
For example, the Python server that we support by default ([pyls](https://github.com/palantir/python-language-server)) has a [configuration section](https://github.com/palantir/python-language-server#configuration) in ther documentation which refers to the providers of specific features, including `pycodestyle` for inspections/diagnostics.
166166

167167
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:
168-
```
168+
169+
```cfg
169170
[pycodestyle]
170171
ignore = E402, E703
171172
max-line-length = 120
@@ -176,8 +177,9 @@ In the example above:
176177
- ignoring E703 allows terminating semicolon (useful for matplotlib plots),
177178
- the maximal allowed line length is increased to 120.
178179

179-
Again, please do check the pycodestyle documentation for specific error codes, and check configuration of other feature providers and language servers as needed.
180+
After changing the configuration you may need to restart the JupyterLab, and please be advised that the errors in configuration may prevent the servers from functioning properly.
180181

182+
Again, please do check the pycodestyle documentation for specific error codes, and check the configuration of other feature providers and language servers as needed.
181183

182184
## Acknowledgements
183185

0 commit comments

Comments
 (0)