dask / dask-tutorial

Dask tutorial
https://tutorial.dask.org
BSD 3-Clause "New" or "Revised" License
1.83k stars 702 forks source link

Fix dashboard link on binder #259

Closed jsignell closed 2 years ago

jsignell commented 2 years ago

I'm in the xarray tutorial and they are doing a smart dashboard link fix:

# This piece of code is just for a correct dashboard link mybinder.org or other JupyterHub demos
import dask
import os

if os.environ.get('JUPYTERHUB_USER'):
    dask.config.set(**{"distributed.dashboard.link": "/user/{JUPYTERHUB_USER}/proxy/{port}/status"})

We should do this in the dask tutorial...

jacobtomlinson commented 2 years ago

We can set this in the start script too.