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
Autocomplete with remote kernels #1041
Comments
Kernel should provide their own completions and LSP their own. These are merged and reconciled so you should be getting both. I would suggest checking in settings whether kernel completions do not happen to be disabled. |
Thank you for the reply! Unfortunately it doesn't seem to be working that way for me, unless I missed some configuration: Lab pod (with root@jupyter:/srv/jupyterhub# pip list | grep lsp
jupyter-lsp 2.2.2
jupyterlab-lsp 5.0.2
python-lsp-jsonrpc 1.1.2
python-lsp-server 1.10.0 Kernel (with edw@hadoop-yarn-nodemanager-0:/$ pip list | grep lsp
jupyter-lsp 2.2.2
jupyterlab-lsp 5.0.2
python-lsp-jsonrpc 1.1.2
python-lsp-server 1.10.0 |
Currently the completions from IPython kernel only work after you actually imported the |
The What packages need to be installed where? By |
No, I mean that pylsp has
Depends on your configuration; one option is:
Another option is:
But the second option only works if the lab environment can see the kernel environment (e.g. they are on the same machine). |
Do I understand you right that these both options bind the jupyterlab environment to only one working kernel environment? Is there a general way to use autocompletion & jumping to sources while I am working with multiple environments at a time? P.S. My case include only local environments on the same machine/OS. |
What I am trying to do...
Hey, I'm trying to figure out if there's a way to get autocomplete suggestions for packages that are not installed on the jupyterlab container. I have packages installed on the kernel only which is started via jupyter enterprise gateway, for which I would like to get autcomplete functionality. If I have pylsp installed locally (on the jupyterlab container) I can get autocomplete for standard python packages etc just fine, but for example pandas, which is installed on the kernel only, has no autocomplete.
How I would like to learn how to do it...
I have searched the documentation and I haven't been able to locate any info regarding remote kernels. I was wondering if you guys could point me in the right direction. Thanks!
How the project might keep the docs accurate...
N/A
The text was updated successfully, but these errors were encountered: