chesterli29 / jupyterlab_tensorboard

Tensorboard extension for jupyterlab.
MIT License
314 stars 36 forks source link

Is there a way to specify a directory for Tensorboard as it starts? #9

Open alexgorbachev opened 5 years ago

alexgorbachev commented 5 years ago

I need to launch Tensrboard for the directory in Google Cloud Storage (gs://bucket/directory). Any way to customize Tensorboard's directory on starting it?

manuzhang commented 5 years ago

It seems any directory will work if we simply pass it through. @chaoleili Any reason to read the contents of the directory first ?

alexgorbachev commented 5 years ago

JupyterLab UI must be passing the current directory... from the left-hand sidebar. not sure how to specify another one...

manuzhang commented 5 years ago

@alexgorbachev Feel free to try out https://github.com/manuzhang/jupyterlab_tensorboard/tree/remote_logdir which allows you to specify a directory

chesterli29 commented 5 years ago

Great idea @manuzhang! It's unnecessary to check the existence of the directory. I change the start way of staring a tensorboard at this batch supportSepecifyDir. @alexgorbachev you can try this command to rebuild package:

git clone git@github.com:chaoleili/jupyterlab_tensorboard.git
git checkout supportSpecifyDir
npm install
npm run build
jupyter labextension link .

But this only supports local path, and if you want to use Google Cloud Storage, I need some time to finish this feature.

chesterli29 commented 5 years ago

@alexgorbachev I checked jupyter_tensorboard code. it doesn't support gs or other s3 storage: https://github.com/lspvic/jupyter_tensorboard/blob/5d6fa13ecfeb27ee446ed8533c5236e21ba79b3a/jupyter_tensorboard/tensorboard_manager.py#L139, you can create an issue in jupyter_tensorboard.