Support re-connecting to the LSP server after connection is lost
See original GitHub issueHi,
I was looking for a Python linter and spell checker for Jupyter Lab and found both fantastic projects: pyls
and jupyterlab-lsp
which seem to allow exactly what I was looking for (lint & type check insite the Jupyter Lab environment).
I’ve managed to install pyls
(with [all]
options) via Anaconda and jupyterlab-lsp
via pip.
I also assume that after install, all that must be done is launch Jupyter Lab?
After launching Jupyter Lab, the linter seems to be working (at least partially): I can see linter error codes underlining. But I don’t see other features such as auto-completion, signature help, go to definition, hover, find references, etc:
Unfortunately, I can’t seem to find guidance on how to actually use these tools, activate/deactivate features, reload/refresh linter after fixing a typo in a notebook or text editor… Is there some kind of interface for Jupyter Lab to do such things? How does one begin.
I also don’t know where the config files for jupyterlab-lsp
(& pyls
?) are stored / supposed to be, except for pycodestyle
/ flake8
mentioned here.
For example, I’m trying to use the pyls-mypy
extension. Where would I go about modifying the configuration:
"pyls":
{
"plugins":
{
"pyls_mypy":
{
"enabled": true,
"live_mode": false
}
}
}
And how would I then be able to run/refresh the mypy
type checker while working on a notebook or in the Jupyter Lab text editor?
Some user guidance on how to interact with jupyterlab-lsp
& pypls
would be much appreciated.
Finally, does jupyterlab-lsp
with pypls
work with Jupyter Notebook server or just Jupyter Lab?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top GitHub Comments
There is nothing to worry about, these hover cache messages should be debug logs not warnings actually.
And yes this was fixed in 1.x. Please upgrade.