tensorboard
tensorboard copied to clipboard
%tensorboard magic in jupyter notebook on docker connection refuesed
Consider Stack Overflow for getting support using TensorBoard—they have a larger community with better searchability:
https://stackoverflow.com/questions/tagged/tensorboard
Do not use this template for for setup, installation, or configuration issues. Instead, use the “installation problem” issue template:
https://github.com/tensorflow/tensorboard/issues/new?template=installation_problem.md
To report a problem with TensorBoard itself, please fill out the remainder of this template.
Environment information (required)
Please run diagnose_tensorboard.py (link below) in the same
environment from which you normally run TensorFlow/TensorBoard, and
paste the output here:
https://raw.githubusercontent.com/tensorflow/tensorboard/master/tensorboard/tools/diagnose_tensorboard.py
For browser-related issues, please additionally specify:
- Browser type and version (e.g., Chrome 64.0.3282.140):
- Screenshot, if it’s a visual issue:
`/Users/tom/.local/share/virtualenvs/pycharm-db_J3GYa/bin/Python /Users/tom/Work/pycharm/main.py
Diagnostics
Diagnostics output
--- check: autoidentify
INFO: diagnose_tensorboard.py version df7af2c6fc0e4c4a5b47aeae078bc7ad95777ffa
--- check: general
INFO: sys.version_info: sys.version_info(major=3, minor=8, micro=9, releaselevel='final', serial=0)
INFO: os.name: posix
INFO: os.uname(): posix.uname_result(sysname='Darwin', nodename='tomdeMacBook-Pro.local', release='21.6.0', version='Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64', machine='x86_64')
INFO: sys.getwindowsversion(): N/A
--- check: package_management
INFO: has conda-meta: False
INFO: $VIRTUAL_ENV: '/Users/tom/.local/share/virtualenvs/pycharm-db_J3GYa'
--- check: installed_packages
WARNING: no installation among: ['tb-nightly', 'tensorboard', 'tensorflow-tensorboard']
WARNING: no installation among: ['tensorflow', 'tensorflow-gpu', 'tf-nightly', 'tf-nightly-2.0-preview', 'tf-nightly-gpu', 'tf-nightly-gpu-2.0-preview']
WARNING: no installation among: ['tensorflow-estimator', 'tensorflow-estimator-2.0-preview', 'tf-estimator-nightly']
--- check: tensorboard_python_version
Traceback (most recent call last):
File "/Users/tom/Work/pycharm/main.py", line 511, in main
suggestions.extend(check())
File "/Users/tom/Work/pycharm/main.py", line 81, in wrapper
result = fn()
File "/Users/tom/Work/pycharm/main.py", line 260, in tensorboard_python_version
from tensorboard import version
ModuleNotFoundError: No module named 'tensorboard'
--- check: tensorflow_python_version
Traceback (most recent call last):
File "/Users/tom/Work/pycharm/main.py", line 511, in main
suggestions.extend(check())
File "/Users/tom/Work/pycharm/main.py", line 81, in wrapper
result = fn()
File "/Users/tom/Work/pycharm/main.py", line 267, in tensorflow_python_version
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'
--- check: tensorboard_data_server_version
INFO: no data server installed
--- check: tensorboard_binary_path
INFO: which tensorboard: b'/usr/local/bin/tensorboard\n'
--- check: addrinfos
socket.has_ipv6 = True
socket.AF_UNSPEC = <AddressFamily.AF_UNSPEC: 0>
socket.SOCK_STREAM = <SocketKind.SOCK_STREAM: 1>
socket.AI_ADDRCONFIG = <AddressInfo.AI_ADDRCONFIG: 1024>
socket.AI_PASSIVE = <AddressInfo.AI_PASSIVE: 1>
Loopback flags: <AddressInfo.AI_ADDRCONFIG: 1024>
Loopback infos: [(<AddressFamily.AF_INET6: 30>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('::1', 0, 0, 0)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 0))]
Wildcard flags: <AddressInfo.AI_PASSIVE: 1>
Wildcard infos: [(<AddressFamily.AF_INET6: 30>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('::', 0, 0, 0)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('0.0.0.0', 0))]
--- check: readable_fqdn
INFO: socket.getfqdn(): 'tomdeMacBook-Pro.local'
--- check: stat_tensorboardinfo
INFO: directory: /var/folders/m2/yvpvgp7x5rs8jqhypm0y92hr0000gn/T/.tensorboard-info
INFO: os.stat(...): os.stat_result(st_mode=16895, st_ino=28160978, st_dev=16777221, st_nlink=2, st_uid=501, st_gid=20, st_size=64, st_atime=1695612672, st_mtime=1695612822, st_ctime=1695612822)
INFO: mode: 0o40777
--- check: source_trees_without_genfiles
INFO: tensorboard_roots (0): []; bad_roots (0): []
--- check: full_pip_freeze
INFO: pip freeze --all:
pip==21.3.1
setuptools==58.3.0
wheel==0.37.0
Next steps
No action items identified. Please copy ALL of the above output, including the lines containing only backticks, into your GitHub issue or comment. Be sure to redact any sensitive information. `
Issue description
Please describe the bug as clearly as possible. How can we reproduce the problem without additional resources (including external data files and proprietary Python modules)?
docker command: sudo docker run -it -p 8888:8888 -p 6005-6015:6005-6015 \ tensorflow/tensorflow:nightly-py3-jupyter
I follow this suggestion on stackvoerflow;
- fist step: run docker container
sudo docker run --name notebook -it -p 8888:8888 -p 6005-6015:6005-6015 tensorflow/tensorflow:nightly-py3-jupyter - second step: go into the container
docker exec -it notebook bash - third step: init tensorboard
tensorboard --logdir /Users/tom/Work/pycharm
but not goes well
I follow this suggestion on stackvoerflow;
- fist step: run docker container
sudo docker run --name notebook -it -p 8888:8888 -p 6005-6015:6005-6015 tensorflow/tensorflow:nightly-py3-jupyter- second step: go into the container
docker exec -it notebook bash- third step: init tensorboard
tensorboard --logdir /Users/tom/Work/pycharmbut not goes well
![]()
use command tensorboard --bind_all --logdir ./ will be ok, but still refuse connection in jupyter notebook
I am sorry you are running into this issue. This seems very related to a new issue we are investigating with use in Colab. The problem seems to have appeared with the most recent version of Chrome(117.0.5938.92).
This investigation is on going. I will try to update this issue if/when we find a fix.
If this does turn out to be the same root cause as the problems of running Colab in Chrome, the Colab team have been investigating. We expect them to keep us updated at the following issue:
Is this still an issue now that googlecolab/colabtools#3990 has been resolved?
