-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocompletions randomly stopping completely (or very slow) #566
Comments
|
Also, have you disabled kernel-side Jedi as described in the readme? |
Edit: I've narrowed down the issue slightly, while using the jedi-language-server (and testing on pyls now) the slow-down/hang generally comes as a result of attempting to autocomplete based on a pandas dataframe. I'm not sure why but so far this is what seems to be causing it. Edit 2: It also seems that when using either pyls or the pyls fork that attempting to autocomplete on a pandas dataframe causes autocomplete to completely hang (and not work for any other line of code currently being worked on) until it retrieves suggestions for the dataframe line (which seems to be taking AGES). |
Great!
I do not see anything particularly odd in the debug output from command line (3). For point 4 see: |
|
I ran into a similar problem (intermittent failures that would recover after a length of time). I resolved it by modifying my Dockerfile (I'm using JupyterHub) to install as follows:
|
I ran into the similar problem. Finally I diabled the completion by LSP and now the completion speed is much better. My configuration in Settings-Advanced Settings Edtior-Code Completion is as follows: {
"continuousHinting": true,
"showDocumentation": true,
"disableCompletionsFrom": ['LSP'],
"kernelCompletionsFirst": true,
"waitForBusyKernel": false,
"theme": "material"
} By the way, Followed the instruction on Notebook-optimized Language Servers, I installed both My environment: Hope that is helpful. |
I came across the same issue under Jupyterlab 3.4.4. lsp is installed by conda , jupyterlab-lsp = 3.10.1 , although I didn't try the workarounds mentioned at the beginning of this issue. Autocompletion also stopped after trying to complete from methods of a Pandas dataframe (actually a small one) and the problem vanishes after disabling lsp. |
I will expand and update my earlier replies on this topic. Tab completion is slower with default settings because we are waiting for both LSP server and kernel completions. You can get much faster completions by:
There is some good news here though:
I am not (currently) writing a faster Python LSP server or making more performance improvements to pylsp (I already made a bunch, and there could have been regressions since) although I find it likely to yield as much of an improvement as all the other work I mentioned. |
I'm unsure why but the functionality of jupyter-lsp seems to randomly hang. I can't get it to run for more than a few seconds in JupyterLab. Oftentimes I can get it to work once or twice then it seems that all functionality completely stops. It no longer highlights reoccurences of a variable. Continuous autohinting doesn't work. Pressing tab for suggestions returns absolutely nothing. The only thing that does work is that errors are still highlighted by pyflakes and/or flake8.
I'm not sure exactly how to reproduce this or how to even get it to work before hanging. If any more information is needed from my end please do let me know but as it stands I'm extremely confused.
I'm using JupyterLab 3.0.12 in a Conda environemnt with the latest jupyterlab-lsp version on Windows 10.
The text was updated successfully, but these errors were encountered: