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` doesn’t work with `%tensorflow_version 1.x` (duplicate plugins for name whatif)

See original GitHub issue

Every few months, the colab tutorials released by my team seem to break due to updates made to the Colab environment. The reason is due to multiple tensorboard versions being installed.

As a result of this, I run the following code snippet before running TensorBoard each time:

# Remove all TensorBoard packages.
! pip list --format=freeze | grep tensorboard | xargs pip uninstall -y
# Install TensorFlow again (This command will only install the default TensorBoard package associated with this TensorFlow package). 
! pip install -q tensorflow

Seems like many users also face this issue often: https://github.com/pytorch/pytorch/issues/22676

Not sure if this is a Colab or a Tensorboard issue, but I’m posting it here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:20 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
wchargincommented, Apr 1, 2020

Hi @MeghnaNatraj! I can reproduce this error by running

%tensorflow_version 1.x
%load_ext tensorboard
%tensorboard --logdir logs

in a blank notebook with a fresh Colab runtime.

Could you please point us to an example notebook that runs into this problem? I looked at a few TF Lite Colabs (flowers_tf_lite.ipynb, text_classification.ipynb, image_classification.ipynb) but didn’t find any that used TensorBoard. It would be great to verify that the fixes that we put in actually work for your use case.

It looks like the problem is that %tensorflow_version 1.x adds an entry to the Python path for TF 1.x, which suffices for new or superseding versions of packages, but doesn’t suffice to remove packages that must not exist in 1.x, like tensorboard_plugin_wit. I’ll see if we can fix this on the Colab side, and failing that I’ll look into whether we might want to backport a patch to 1.15.

1reaction
wchargincommented, Apr 10, 2020

Should be deployed in prod:

Screenshot of repro, now working

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: Duplicate plugins for name projector
I get this using tensorflow 2.0.0.-tc0, no pytorch. Also there is no second tensorboard installation. – Oren Bochman. Sep 10, 2019 at 11 ......
Read more >
Displaying text data in TensorBoard - TensorFlow
Overview. Using the TensorFlow Text Summary API, you can easily log arbitrary text and view it in TensorBoard. This can be extremely helpful ......
Read more >
How to use TensorFlow in PyCharm (TensorFlow Tip of the ...
It doesn't take much to get TensorFlow running in an IDE like PyCharm. In this TensorFlow Tip of the Week, Laurence (@lmoroney) goes...
Read more >
Frequently Asked Questions — DeepStream 6.1.1 Release ...
What if I do not get expected 30 FPS from camera using v4l2src plugin in pipeline but instead get 15 FPS or less...
Read more >
valueerror: duplicate plugins for name whatif tensorboard
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Motivation for...
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