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
Kernelspec icon broken when base_url is used #11527
Comments
I think in 3.1 this is how it makes the kernelspec path take the
|
This is likely due to #11175 which also introduced this issue in JupyterLab Desktop where we worked around this by adding |
Thanks @ricklamers for reporting and @krassowski for the input. It does sound related to the change in #11175. #11175 points to the code in Which happens to be working fine when the base url is set to something else, for example on Binder: #11175 (comment) @ricklamers could it be that the kernelspecs in your setup are handled differently? The observation that lead to #11175 was the fact that
|
Thanks for your responses/input @jtpio @krassowski! I think it might be caused by the fact that in my configuration I'm using the Jupyter Enterprise Gateway (which in turn uses the Jupyter Kernel Gateway). They both have {
"resources": {
"logo-64x64": "/kernelspecs/my-kernel/logo-64x64.png",
"logo-32x32": "/kernelspecs/my-kernel/logo-32x32.png"
}
} |
Ah ok then that would explain why. So probably something that should be investigated in Jupyter Kernel / Entreprise Gateway to check the |
After merging jupyter-server/enterprise_gateway#1019 the problem went away for us. I think this was eventually the responsibility of the kernel manager (and the resource paths it returns). So I think we can consider this solved (never being an issue in JupyterLab itself). |
For the record, I also contributed that fix to the Kernel Gateway project because it was also affected: jupyter-server/kernel_gateway#372 |
Description
The kernelspec icon is broken when a
--LabApp.base_url
is specified. This has to do with how the kernelspec path is used directly for the element.See
jupyterlab/packages/notebook-extension/src/index.ts
Line 1432 in f5d186c
Reproduce
base_url
that's not""
.Expected behavior
Kernelspec icons should respect the configured
base_url
. This can be achieved in multiple ways, a relative path seems to work (stripping the leading/
from the path/kernelspecs/python3/logo-64x64.png
). Ideally the path resolve is harmonized with how resource paths in general in the application respect thebase_url
.Context
Screenshot
The text was updated successfully, but these errors were encountered: