Skip to content

Conversation

@wchargin
Copy link
Contributor

@wchargin wchargin commented Jul 26, 2019

Summary:
The manager and notebook modules no longer choke when there are
older or newer versions of TensorBoard running.

We also now silently ignore invalid files. There isn’t really any useful
information to report out to the user.

Fixes #2453. Fixes #2467.

Test Plan:
Launch TensorBoard version 1.14.0 (stable), and keep it running in the
background. Then, create a new virtualenv with Jupyter and latest
nightly TensorBoard. Launch Jupyter, and execute the following cell:

%load_ext tensorboard
%tensorboard --logdir /tmp/whatever

Before this patch, this would successfully launch TensorBoard, but also
spam a bunch of “incompatible version” log warnings. Those warnings are
now gone.

Then run

from tensorboard import notebook
notebook.list()

and note that the list contains both TensorBoards, even though they
come from different versions. Prior to this patch, this would have
logged a warning and shown only the TensorBoard running on the new code.

Finally, run printf '"wat"\n' >/tmp/.tensorboard-info/wat, and re-run
notebook.list(). Note that no warning is printed. Then, increase the
log verbosity with

from absl import logging
logging.set_verbosity(logging.DEBUG)

and re-run notebook.list() to see a warning.

wchargin-branch: notebook-cross-version

Summary:
The `manager` and `notebook` modules no longer choke when there are
running TensorBoard instances on older or newer versions.

We also now silently ignore invalid files. There isn’t really any useful
information to report out to the user.

Fixes #2453. Fixes #2467.

Test Plan:
Launch TensorBoard version 1.14.0 (stable), and keep it running in the
background. Then, create a new virtualenv with Jupyter and latest
nightly TensorBoard. Launch Jupyter, and execute the following cell:

```
%load_ext tensorboard
%tensorboard --logdir /tmp/whatever
```

Before this patch, this would successfully launch TensorBoard, but also
spam a bunch of “incompatible version” log warnings. Those warnings are
now gone.

Then run

```
from tensorboard import notebook
notebook.list()
```

and note that the list contains _both_ TensorBoards, even though they
come from different versions. Prior to this patch, this would have
logged a warning and shown only the TensorBoard running on the new code.

wchargin-branch: notebook-cross-version
filepath,
exc_info=True,
)
# Ignore unrecognized files.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could always log at debug here, if you want. Up to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure: might as well, and might come in handy.

wchargin-source: 2dd9a9ef1b0ad2b1b8031dc06921c7b1e1141794
wchargin-branch: notebook-cross-version
@wchargin wchargin merged commit f39e55b into master Jul 26, 2019
@wchargin wchargin deleted the wchargin-notebook-cross-version branch July 26, 2019 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants