dask / dask-labextension

JupyterLab extension for Dask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mention how to proxy dashbord link in README

mathause opened this issue · comments

It took a lot of digging to find out how to connect to a dashboard on a remote machine/ jupyterhub instance. Finally I found: https://jobqueue.dask.org/en/latest/interactive.html#configuration and it works well. Could we link to this in the README?

That is the recommended way to connect to a dashboard via jupyterhub? How would a sysadmin best set that up for all users?

DASK_DISTRIBUTED__DASHBOARD__LINK="/user/{JUPYTERHUB_USER}/proxy/{port}/status"

before starting jupyterhub?

That's definitely a valid way to configure this. I would support adding a section to the README. Do you have any interest in raising a PR to add this?

Depending on which spawner you are using for Jupyter Hub you should be able to configure environment variables for each Jupyter session.

Big +1 on documenting this a bit more clearly right away in the README, we were just looking at this issue with @consideRatio and eventually the above proved very helpful!

I think I had issues with this because I had an old config file around - now it seems to work without setting the environment variable.

DASK_DISTRIBUTED__DASHBOARD__LINK="{JUPYTERHUB_SERVICE_PREFIX}proxy/{port}/status"

Is even better since it will take care of everything in front of /user, if any.

Example on my system:

                "JUPYTERHUB_USER=lvu",           
                "JUPYTERHUB_BASE_URL=/jupyter/",
                "JUPYTERHUB_SERVICE_PREFIX=/jupyter/user/lvu/",