question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tensorboard not starting in notebook

See original GitHub issue

I ran the notebooks get_started.ipynb and hyperparameter_tuning_with_hparams.

Each time, after %tensorboard --logdir "logs", I’m getting this under the notebook cell: ERROR: Timed out waiting for TensorBoard to start. It may still be running as pid 10864.

And then this:

WARNING: Logging before flag parsing goes to stderr. W0326 09:10:24.666816 1004 manager.py:322] invalid info file: ‘C:\Temp\.tensorboard-info\pid-6196.info’ Traceback (most recent call last): File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 317, in get_all info = _info_from_string(contents) File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 158, in _info_from_string raise ValueError(“incompatible version: %r” % (json_value,)) ValueError: incompatible version: {‘cache_key’: ‘eyJhcmd1bWVudHMiOlsiLS1sb2dkaXIiLCJyb290X2xvZ2RpciJdLCJjb25maWd1cmVfa3dhcmdzIjp7fSwid29ya2luZ19kaXJlY3RvcnkiOiJDOlxccHl0aG9uX2NvZGUifQ==’, ‘db’: ‘’, ‘logdir’: ‘root_logdir’, ‘path_prefix’: ‘’, ‘pid’: 6196, ‘port’: 6006, ‘start_time’: 1553171458, ‘version’: ‘1.13.1’} W0326 09:10:24.666816 1004 manager.py:322] invalid info file: ‘C:\Temp\.tensorboard-info\pid-6224.info’ Traceback (most recent call last): File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 317, in get_all info = _info_from_string(contents) File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 158, in _info_from_string raise ValueError(“incompatible version: %r” % (json_value,)) ValueError: incompatible version: {‘cache_key’: ‘eyJhcmd1bWVudHMiOlsiLS1sb2dkaXI9bG9ncy9ocGFyYW1fdHVuaW5nIl0sImNvbmZpZ3VyZV9rd2FyZ3MiOnt9LCJ3b3JraW5nX2RpcmVjdG9yeSI6IkM6XFxweXRob25fY29kZVxcdGVuc29yYm9hcmRfbm90ZWJvb2tzIn0=’, ‘db’: ‘’, ‘logdir’: ‘logs/hparam_tuning’, ‘path_prefix’: ‘’, ‘pid’: 6224, ‘port’: 6006, ‘start_time’: 1553256806, ‘version’: ‘1.13.1’} W0326 09:10:24.682441 1004 manager.py:322] invalid info file: ‘C:\Temp\.tensorboard-info\pid-6420.info’ Traceback (most recent call last): File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 317, in get_all info = _info_from_string(contents) File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 158, in _info_from_string raise ValueError(“incompatible version: %r” % (json_value,)) ValueError: incompatible version: {‘cache_key’: ‘eyJhcmd1bWVudHMiOlsiLS1sb2dkaXIiLCJsb2dzL2hwYXJhbV90dW5pbmciXSwiY29uZmlndXJlX2t3YXJncyI6e30sIndvcmtpbmdfZGlyZWN0b3J5IjoiQzpcXHB5dGhvbl9jb2RlXFx0ZW5zb3Jib2FyZF9ub3RlYm9va3MifQ==’, ‘db’: ‘’, ‘logdir’: ‘logs/hparam_tuning’, ‘path_prefix’: ‘’, ‘pid’: 6420, ‘port’: 6006, ‘start_time’: 1553256443, ‘version’: ‘1.13.1’} W0326 09:10:24.682441 1004 manager.py:322] invalid info file: ‘C:\Temp\.tensorboard-info\pid-9488.info’ Traceback (most recent call last): File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 317, in get_all info = _info_from_string(contents) File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 158, in _info_from_string raise ValueError(“incompatible version: %r” % (json_value,)) ValueError: incompatible version: {‘cache_key’: ‘eyJhcmd1bWVudHMiOlsiLS1sb2dkaXIiLCJsb2dzIl0sImNvbmZpZ3VyZV9rd2FyZ3MiOnt9LCJ3b3JraW5nX2RpcmVjdG9yeSI6IkM6XFxweXRob25fY29kZVxcdGVuc29yYm9hcmRfbm90ZWJvb2tzIn0=’, ‘db’: ‘’, ‘logdir’: ‘logs’, ‘path_prefix’: ‘’, ‘pid’: 9488, ‘port’: 6006, ‘start_time’: 1553242957, ‘version’: ‘1.13.1’}

This goes on in a long list, over and over again.

After a few attempts to start TB like this, I notice several tensorboard.exe entries in my taskmanager processes tab.

Opening TB via console worked fine. How can I get TB working in notebook?

These are the relevant packages installed in the conda env I use as kernel in jupyter notebook:

tb-nightly                1.14.0a20190319          pypi_0    pypi
tensorflow-estimator-2-0-preview 1.14.0.dev2019031400          pypi_0    pypi
tf-nightly-2-0-preview    2.0.0.dev20190325          pypi_0    pypi

on Windows10 x64, conda 4.6.8, Python 3.6.8

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Harshini-Gadigecommented, Apr 4, 2019

@philippHRO Any update on this ?

1reaction
wchargincommented, Mar 26, 2019

What Stephan says is correct. Can you check whether you also have the tensorboard package (not tb-nightly) installed in your environment?

If you run !tensorboard --logdir /tmp/whatever from a Jupyter cell, what version does TensorBoard print out once it starts its server? (After checking, you can press the “stop” button in Jupyter to kill the subprocess.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Starting tensorboard inline within a Jupyter notebook ... - GitHub
The issue seems to be that even after TensorBoard is started, the notebook extension running inside the Jupyter kernel does not send back ......
Read more >
Using TensorBoard in Notebooks - TensorFlow
TensorBoard can be used directly within notebook experiences such as Colab and Jupyter. This can be helpful for sharing results, ...
Read more >
tensor board output is not shown when I am trying to run the ...
If TensorBoard still doesn't show up in Jupyter notebooks in VS Code after trying the above, please feel free to open an issue...
Read more >
How to run TensorBoard in Jupyter Notebook - DLology
Start by installing TF 2.0 and loading the TensorBoard notebook extension: · Alternatively, to run a local notebook, you can create a conda...
Read more >
Launching TensorBoard from a notebook - SWAN Community
Hi, I tried to launch TensorBoard from a Python notebook by doing. %load_ext tensorboard %tensorboard --logdir=./my_logs --port=6006.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found