Tensorflow Tensorboard default port

PythonTensorflowTensorboard

Python Problem Overview


Is there a way to change the default port (6006) on TensorBoard so we could open multiple TensorBoards? Maybe an option like --port="8008"?

Python Solutions


Solution 1 - Python

In fact there is an option to change the default port ...

tensorboard --logdir=/tmp  --port=8008

Solution 2 - Python

You should provide a port flag (--port=6007).

But I am here to explain how you can find it and other flags without any documentation. Almost all command line tools have a flag -h or --help which shows all possible flags this tool allows.

By running it you will see information about a port flag and that --logdir allows you to

>also pass a comma separated list of log directories

and you can also inspect separate event-files and tags with --event_file and --tag flags

Solution 3 - Python

If you are already in the directory where TensorFlow writes its logs, you should specify the port first:

tensorboard --port=6007 --logdir runs

If you are feeding a directory to logdir, then the order doesn't matter. (I am using TensorBaord 1.8)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionnicolasdavidView Question on Stackoverflow
Solution 1 - PythonnicolasdavidView Answer on Stackoverflow
Solution 2 - PythonSalvador DaliView Answer on Stackoverflow
Solution 3 - PythonMiladioussView Answer on Stackoverflow