-
Notifications
You must be signed in to change notification settings - Fork 221
jupyter: kernelspecs library outputs incomplete list #8224
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
Comments
This isn't particular impactful in the context of cocalc.com, because we have a curated list of kernels. Also, things seem fine on compute servers. But it would still be nice to sort this out. I greatly prefer using kernelspecs over say a shell call out to |
On your machine, what does |
Hmm, weird. Well, kernelspecs' code discards all spec dirs where there is no kernel.json file. That makes sense to me, though. |
Good job figuring that out.
It makes sense, but it is also inconsistent with what upstream Jupyter (or Ubuntu?) actually does, so there is a bug somewhere. This probably arose out of some conflict in packaging policies, e.g., maybe in Ubuntu one package has files in several different directories, whereas in Jupyter kernels we think of everything in one directory. Reading https://jupyter-client.readthedocs.io/en/5.2.1/kernels.html just makes me think Ubuntu is doing something weird/wrong... |
On my Dev machine (Ubuntu 22.04), the output of the kernelspecs package from @rgbkrk is incomplete:
Compare my machine:
~/cocalc/src$ jupyter kernelspec list Available kernels: python3 /usr/local/lib/python3.10/dist-packages/ipykernel/resources bash /usr/local/share/jupyter/kernels/bash ir /usr/local/share/jupyter/kernels/ir ir-sage /usr/local/share/jupyter/kernels/ir-sage javascript /usr/local/share/jupyter/kernels/javascript julia-1.9 /usr/local/share/jupyter/kernels/julia-1.9 octave /usr/local/share/jupyter/kernels/octave python3-sage /usr/local/share/jupyter/kernels/python3-sage python3-ubuntu /usr/local/share/jupyter/kernels/python3-ubuntu sagemath /usr/local/share/jupyter/kernels/sagemath
with the kernelspecs library
This kernel:
which is actually the system default, is missing.
I realize that kernelspecs hasn't been touched in over 4 years. Maybe the jupyter kernel search algorithm or spec (if there is one) has changed?
The text was updated successfully, but these errors were encountered: