Skip to content

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.

asford added 3 commits August 20, 2019 02:30
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