leap-stc / data-and-compute-team

Repo to organize issues/mangagment of the LEAP Data and Computation Team
Apache License 2.0
1 stars 0 forks source link

Enable Tensorboard on the hub #2

Open jbusecke opened 3 months ago

jbusecke commented 3 months ago

@SammyAgrawal this one is for you, since I remember you wanted to use tensorboard?

Take a look at the jupyter-server-proxy docs: https://jupyter-server-proxy.readthedocs.io/en/latest/arbitrary-ports-hosts.html#with-jupyterhub

I think there might be a way to write a simple url so you can navigate to a local port on the hub. Let me know if that works.

SammyAgrawal commented 2 months ago

It does the same as it does inline; tries to load tensorboard (tab title is correct) but the actual screen is blank. Will try troubleshooting to see if jupyterhub issue or (more likely) a pytorch one

jbusecke commented 2 months ago

I talked to Yuvi two days ago and he said the important thing is that you can change the base_url, which seems like it is the case for tensorboard!

If you can set the base_url to leap.2i2c.cloud/hub/user-redirect/proxy/ this might work (@yuvipanda did I get this right?)

SammyAgrawal commented 2 months ago

Looking into wandb as an alternative

yuvipanda commented 2 months ago

Does https://github.com/kopwei/jupyter-tensorboard-proxy help?

jbusecke commented 2 months ago

@SammyAgrawal do you have capacity to add jupyter-tensorboard-proxy to the pangeo-ml image following the new guide and testing this? Or can we install this on the fly @yuvipanda?

yuvipanda commented 2 months ago

has to be in the image unfortunately