Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend: reinstate registration for conditional plugins #2340

Merged
merged 2 commits into from
Jun 12, 2019

Conversation

wchargin
Copy link
Contributor

@wchargin wchargin commented Jun 11, 2019

Summary:
Plugins whose backends are provided via “loaders” rather than the
plugins themselves may fail to load. We still want to allow those
plugins to display a message in the frontend indicating what must be
done to enable them (e.g., update TensorFlow, start a tfdbg debugger),
which requires registering their frontends unconditionally.

This is a short-term hack to retain functionality prior to #2304 (with
the minor change that these plugins will now always appear at the end of
the list). We’ll want to replace this with a better mechanism when time
permits.

Fixes #2338.

Test Plan:
Launch TensorBoard without TensorFlow installed and with no flags other
than --logdir. Note that the beholder, debugger, hparams, what-if
tool, and profile dashboards all have valid entries in the “inactive”
dropdown, displaying appropriate help messages.

Verify that of the plugins listed in default.py, all those provided
via loaders now have registerDashboard statements.

wchargin-branch: register-conditional-plugins

Summary:
Plugins whose backends are provided via “loaders” rather than the
plugins themselves may fail to load. We still want to allow those
plugins to display a message in the frontend indicating what must be
done to enable them (e.g., update TensorFlow, start a `tfdbg` debugger),
which requires registering their frontends unconditionally.

This is a short-term hack to retain functionality prior to #2304 (with
the minor change that these plugins will now always appear at the end of
the list). We’ll want to replace this with a better mechanism when time
permits.

Fixes #2338.

Test Plan:
Launch TensorBoard without TensorFlow installed and with no flags other
than `--logdir`. Note that the beholder, debugger, hparams, what-if
tool, and profile dashboards all have valid entries in the “inactive”
dropdown, displaying appropriate help messages.

Verify that of the plugins listed in `default.py`, all those provided
via loaders now have `registerDashboard` statements.

wchargin-branch: register-conditional-plugins
@wchargin wchargin requested a review from nfelt June 11, 2019 02:37
@wchargin wchargin changed the title frontend: reinstate frontend registration for conditional plugins frontend: reinstate registration for conditional plugins Jun 11, 2019
Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

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

Thanks for the fix.

@@ -513,6 +513,14 @@ <h3>No Beholder data was found.</h3>
},
});

// TODO(#2338): Remove this, and set up the "no TF" message properly.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: indentation not aligned

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks; fixed.

wchargin-source: e9af3b0e9db61d4f15d24037fdd2467c8b3f45dc
wchargin-branch: register-conditional-plugins
@wchargin wchargin merged commit 48665fe into master Jun 12, 2019
@wchargin wchargin deleted the wchargin-register-conditional-plugins branch June 12, 2019 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugins without backend have no frontend since 2019-06-06
2 participants