jupyterlab-nvdashboard
jupyterlab-nvdashboard copied to clipboard
Link issue on JupyterHub
Hello,
I've been testing the nvdashboard on my JupyterHub application, and there might be an issue with the links to the GPU dashboards.
If I access the GPU dashboards from the menu on the left, everything works as expected. However, by using the "nvdashboard" icon on the Launcher menu (right panel on the screenshot above), I am then redicted to the following page:
By clicking on any of the links presented above, I will face following error message: 404 : Not Found Jupyter has lots of moons, but this is not one...
After playing a bit with the url paths, I was able to correctly access the expected dashboard. The links above are redirecting to the main jupyterhub page, which ignores the current logged in user url path. For example:
JupyterHub main path: my-jhub-app.com JupyterHub logged in user path: my-jhub-app.com/user/my-username/
Nvdashboard Launcher (working): my-jhub-app.com/user/my-username/nvdashboard/
GPU-memory redirects to this link (broken): my-jhub-app.com/GPU-memory GPU-memory expected link (working): my-jhub-app.com/user/my-username/nvdashboard/GPU-memory
Thus, essentially, one would need to keep the nvdashboard launcher link and append the dashboard name (e.g. GPU-memory). This solution seems to solve the link to all GPU dashboards.
Thanks for raising this! It sounds like we need to either set the links to be relative instead of absolute or to somehow tell Bokeh about the prefix.
@GuilhermeZimeo Is this something you feel like you could contribute to the project?
+1, it'd be great to get a fix for this