Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access tensorboard with nbserverproxy? #16

Open
dbuscombe-usgs opened this issue Jun 24, 2018 · 9 comments
Open

Access tensorboard with nbserverproxy? #16

dbuscombe-usgs opened this issue Jun 24, 2018 · 9 comments

Comments

@dbuscombe-usgs
Copy link

Is there any way to launch a web browser from within a notebook, to view localhost?

http://jupyter-dbuscombe-2dusgs:6006

It is for accessing tensorboard outputs

@rsignell-usgs
Copy link
Contributor

This should be possible with https://github.com/jupyterhub/nbserverproxy, which is used by the Dask dashboard to proxy port 8787 to urls like:
http://pangeo.esipfed.org/user/rsignell-usgs/proxy/8787/status

@dbuscombe-usgs
Copy link
Author

Thanks. I'm almost there

I can launch tensorboard with a bang command within a notebook cell:

!tensorboard --logdir=/tmp/tensorflow_logs

then it is starts to load at

http://pangeo.esipfed.org/user/dbuscombe-usgs/proxy/6006

(I see the orange "tensorboard" banner)

but it hangs indefinitely with the message "Loading active dashboards". Is there something intercepting or a simple explanation why it doesn't load the whole page?

@dbuscombe-usgs
Copy link
Author

This is what I see

picture1

picture2

@rsignell-usgs rsignell-usgs changed the title View localhost in Notebook? Access tensorboard with nbserverproxy? Jun 30, 2018
@rsignell-usgs
Copy link
Contributor

@jjhelmus, we are two domain scientists(!) trying to get a jupyterhub instance ready for a class on machine learning with 40 students, and you popped up when I googled "tensorboard" and "nbserverproxy".

Do you know whether this problem is:

  • a nbserverproxy issue
  • a tensorboard/tensorflow/jupyterhub issue
  • user error
  • something else?

@jjhelmus
Copy link

jjhelmus commented Jul 2, 2018

I am not familiar enough with jupyterhub nor nbserverproxy to provide any help with this issue.

@rsignell-usgs
Copy link
Contributor

@jjhelmus, thanks for looking. It was worth a shot!

@rsignell-usgs
Copy link
Contributor

@dbuscombe-usgs , is it possible to call tensorboard in the notebook instead of from the command line?

Would either of the solutions here work?
https://stackoverflow.com/questions/38189119/simple-way-to-visualize-a-tensorflow-graph-in-jupyter

@dbuscombe-usgs
Copy link
Author

Thanks but I can't get any of these options to work.

@jacobtomlinson
Copy link

Appreciate this is an old issue but may be resolved with the new absolute URL proxy.

<notebook-base>/proxy/absolute/<port>

https://jupyter-server-proxy.readthedocs.io/en/latest/arbitrary-ports.html?highlight=absolute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants