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

Support hparams plugin via Tensorboard POST api handler. #54

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

asford
Copy link

@asford asford commented Aug 20, 2019

The Tensorboard hparams plugin, included in tensorboard 1.14+,
uses POST requests to access experiment information. The 0.1.10
of jupyter_tensorboard only provides a GET handler, breaking the
hparams Tensorboard view.

Expand TensorboardHandler to include both GET and POST actions
and extended xsrf_cookie exceptions, normally only applied to GET
and HEAD requests in the IPythonHandler, to POST requests in
TensorboardHandler.

Provides support for hparams plugin, which uses POST to retrieve
experiment information but can't be trivially extended to include xsrf
information in these POST requests. Mirrors existing IPythonHandler
behavior, falling back to Referer header rather than form parameters.

Add handler for POST requests to TensorboardHandler, providing support
for hparams plugin.
Expand xsrf_cookie exceptions, normally only applied to GET and HEAD
requests in the IPythonHandler, to POST requests in TensorboardHandler.

Provides support for hparams plugin, which uses POST to retrieve
experiment information but can't be trivially extended to include xsrf
information in these POST requests. Mirrors existing IPythonHandler
behavior, falling back to Referer header rather than form parameters.
@asford asford requested a review from lspvic February 13, 2020 21:56
cliffwoolley added a commit to cliffwoolley/jupyter_tensorboard that referenced this pull request Feb 17, 2021
Merges and adapts changes from lspvic#54
to fix TensorBoard 2.4.x scalar card compatibility

Signed-off-by: Cliff Woolley <jwoolley@nvidia.com>
cliffwoolley added a commit to cliffwoolley/jupyter_tensorboard that referenced this pull request Feb 25, 2021
Extends XSRF header exceptions to POST requests per discussion in tensorflow/tensorboard#4685 (comment)

Signed-off-by: Cliff Woolley <jwoolley@nvidia.com>
cliffwoolley added a commit to cliffwoolley/jupyter_tensorboard that referenced this pull request Feb 25, 2021
Extends XSRF header exceptions to POST requests per discussion in tensorflow/tensorboard#4685 (comment)

Signed-off-by: Cliff Woolley <jwoolley@nvidia.com>
@cliffwoolley
Copy link

@asford - I've merged this PR into #63 because it's needed also for the Scalars card now in TensorBoard 2.4. Thank you!

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.

2 participants