`%tensorboard` doesn’t work with `%tensorflow_version 1.x` (duplicate plugins for name whatif)
See original GitHub issueEvery 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:
- Created 3 years ago
- Reactions:2
- Comments:20 (16 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @MeghnaNatraj! I can reproduce this error by running
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, liketensorboard_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.Should be deployed in prod: