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

show_graph(tf.get_default_graph()) Blank Cell in Safari #223

Closed
austinmw opened this issue May 18, 2018 · 8 comments

Comments

@austinmw
Copy link

@austinmw austinmw commented May 18, 2018

Hi, When I run show_graph(tf.get_default_graph()) in the Chapter 9 Jupyter notebook it outputs a blank cell using Safari. In Chrome it works fine. I know TensorBoard may not officially support Safari, but it does work outside of Jupyter. Any idea what the problem may be for Safari+Jupyter or if there is a workaround?

@austinmw austinmw changed the title show_graph(tf.get_default_graph()) Blank Cell show_graph(tf.get_default_graph()) Blank Cell in Safari May 18, 2018
@ageron

This comment has been minimized.

Copy link
Owner

@ageron ageron commented May 18, 2018

Hi @austinmw ,
Thanks for your feedback. Indeed, I noticed that it does not work in other browsers than Chrome. Fortunately, there seems to be a workaround available. I pushed the code in tensorflow_graph_in_jupyter.py. You can simply replace the definition of show_graph() with:

from tensorflow_graph_in_jupyter import show_graph

Please tell me if it works well for you. If so, I'll update the notebooks 9, 10, 11 and 14, to make them use this.

Hope this helps,
Aurélien

@austinmw

This comment has been minimized.

Copy link
Author

@austinmw austinmw commented May 18, 2018

Works great, thanks!

@ageron

This comment has been minimized.

Copy link
Owner

@ageron ageron commented May 18, 2018

Cool, I'll update the notebooks then. :)

@ageron ageron closed this in 51b1288 May 18, 2018
@juanfie

This comment has been minimized.

Copy link

@juanfie juanfie commented Oct 30, 2018

Hi, TF people. Where can I get the tensorflow_graph_in_jupyter package?

ThX,

Juan

@ageron

This comment has been minimized.

Copy link
Owner

@ageron ageron commented Dec 19, 2018

Hi @juanfie ,
It's at the root of this repository (tensorflow_graph_in_jupyter.py).

@juanfie

This comment has been minimized.

Copy link

@juanfie juanfie commented Dec 19, 2018

@OyaKesgin

This comment has been minimized.

Copy link

@OyaKesgin OyaKesgin commented Oct 23, 2019

Hi Ageron, I m trying to run "from tensorflow_graph_in_jupyter import show_graph" but i receive "No module named 'tensorflow_graph_in_jupyter'" on Crome. I tried to run the package as you highlighted above before my code, it doesnt work. could you please advise how i can add this package to my anaconda jyputer?

thanks in advance.

@ageron

This comment has been minimized.

Copy link
Owner

@ageron ageron commented Oct 24, 2019

Hi @OyaKesgin ,
Thanks for your question. TensorBoard now comes with a Jupyter extension that makes it possible to run it directly within your notebook. First load the extension (typically at the beginning of your notebook):

%load_ext tensorboard

Then use the extension like this:

%tensorboard --logdir=./my_logs --port=6006

This starts a TensorBoard server watching the logs in the directory ./my_logs, and listening on TCP port 6006. It also connects the notebook to this server and displays the TensorBoard UI directly within the notebook. It's very convenient.

For more details, check out this page in the docs.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.