-
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
Detection of servers installed in kernel (but not server) environment #923
Comments
These are two different paths, so knowing that one works does not help with the other really.
Currently detection of R language sever comes down to what jupyterlab-lsp/python_packages/jupyter_lsp/jupyter_lsp/specs/r_languageserver.py Lines 21 to 32 in ff8b6c4
When you install kernelspec It would technically be possible to use path from kernel spec it creates a JSON file like this: {
"argv": ["/a/path/to/your/R", "--slave", "-e", "IRkernel::main()", "--args", "{connection_file}"],
"display_name": "R",
"language": "R"
} While we could potentially check for kernelspecs contents it is not currently implemented. We would need to extract |
Maybe of more use for now, you can create custom serverspecs pointing to any executable you would like, see https://jupyterlab-lsp.readthedocs.io/en/latest/Configuring.html# |
Let's consolidate the discussion in #533 which was opened earlier and has more replies.
A concrete idea for instead modifying the kernelspecs was proposed in #533 (comment). |
I'm not 100% sure if this is the correct repository to file this issue so please forgive me in advance if I've bungled this.
What I am trying to do...
I'm trying to run JupyterHub with an R kernel, using Conda (micromamba) to manage environments, with an R language server.
The steps I've followed are essentially:
jupyterlab
,jupyterhub
into thejupyter
environmentR
,r-irkernel
,r-languageserver
into theR
environmentR
environment and invokeIRkernel::installspec(user = FALSE, prefix = '$JUPYTER_HOME')
This works great and sets up an R kernel. However, despite having installed
r-languageserver
(which I can confirm by runninglibrary(languageserver)
in a notebook), JupyterLab is unable to detect the R language server. It complains:and recommends I troubleshoot finding
Rscript
on thePATH
. It is on the PATH (in theR
environment), and JupyterLab is clearly aware of this since it's able to run notebooks on the R kernel just fine. And yet, it cannot find the language server.How I would like to learn how to do it...
I think the instructions in the documentation are pretty clear as-is, this was a very unexpected case. Having a section of documentation specifically for cross-environment kernels would potentially be helpful.
How the project might keep the docs accurate...
Having an additional section to the installation documentation to help with cross-account server scenarios could probably address this.
The text was updated successfully, but these errors were encountered: