question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support re-connecting to the LSP server after connection is lost

See original GitHub issue

Hi,

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:

image

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
krassowskicommented, Jan 25, 2021

There is nothing to worry about, these hover cache messages should be debug logs not warnings actually.

0reactions
krassowskicommented, Jan 25, 2021

And yes this was fixed in 1.x. Please upgrade.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LSP Integration for Python Not Working · Issue #203 - GitHub
When I install the Jupyter-lsp following the instruction in readme. The status bar always give connecting. and shows LSP servers missing python. Solution....
Read more >
Troubleshooting - LSP Mode - LSP support for Emacs
Set lsp-log-io to t to inspect communication between client and the server. Use lsp-workspace-show-log to switch to the corresponding log buffer. Check project ......
Read more >
the connection has been lost. attempting to reconnect to your ...
I have a brand new Windows 2008 R2 server with Remote Desktop Services installed. My old server was a Windows 2003 server running...
Read more >
Client Configuration - LSP for Sublime Text
After you have installed a language server, the LSP settings need to be configured to ... There is no support for connecting to...
Read more >
Running SonarLint language server from shell? - Sonar
I want to get SonarLint working in Neovim based on the LSP server. Since the LSP server is already used by SonarLint for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found