jupyterlab-nvdashboard icon indicating copy to clipboard operation
jupyterlab-nvdashboard copied to clipboard

Link issue on JupyterHub

Open GuilhermeZimeo opened this issue 5 years ago • 2 comments

Hello,

I've been testing the nvdashboard on my JupyterHub application, and there might be an issue with the links to the GPU dashboards.

image

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:

image

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.

GuilhermeZimeo avatar Jan 30 '20 13:01 GuilhermeZimeo

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?

jacobtomlinson avatar Jan 30 '20 13:01 jacobtomlinson

+1, it'd be great to get a fix for this

calvinytong avatar Jul 06 '21 19:07 calvinytong