-
Notifications
You must be signed in to change notification settings - Fork 82
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
Fix compatibility with TB >= 2.2 #63
base: master
Are you sure you want to change the base?
Conversation
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.
/cc @wchargin |
Why is this not merged already? Bumped into this issue. |
Provides for better compatibility with TB 2.2, 2.3, 2.4; also better future-proofness Signed-off-by: Cliff Woolley <[email protected]>
Signed-off-by: Cliff Woolley <[email protected]>
Signed-off-by: Cliff Woolley <[email protected]>
Examples of dynamic plugins include the Projector plugin as well as NVIDIA's DLProf plugin Signed-off-by: Cliff Woolley <[email protected]>
I've updated this PR from last year to also include TB 2.3 and TB 2.4 now. Plus the newer, simplified implementation should allow better future-proofness as well: |
0a73a58
to
675f31a
Compare
Even with this change, there is a missing XSRF (cross-site request forgery) header issue with this portion of TensorBoard 2.4 functionality; see tensorflow/tensorboard#4685 . Jupyter can be configured to disable XSRF checking as a short-term workaround, but this is less than desirable. Signed-off-by: Cliff Woolley <[email protected]>
Signed-off-by: Cliff Woolley <[email protected]>
Extends XSRF header exceptions to POST requests per discussion in tensorflow/tensorboard#4685 (comment) Signed-off-by: Cliff Woolley <[email protected]>
675f31a
to
163a095
Compare
Thanks for this fix... It helps me a lot |
@lspvic can we merge this? |
This seems to be working with TB 2.5 as well, fwiw. |
Merges and adapts changes from lspvic#54 to fix TensorBoard 2.4.x scalar card compatibility Signed-off-by: Cliff Woolley <[email protected]>
just tried this with TB 2.7 and it worked very well. amazing! thanks for the fix. why has it not been merged already? |
@lspvic Could you please merge this feature to |
@lspvic @tcbegley @qrtt1 @ferrarodav please help to merge this pr, thank you very much!! |
tensorflow/tensorboard#3539 in TensorBoard 2.2 dropped the legacy DB mode, so the unused optional db_* parameters to base_plugin.TBContext() should be dropped, as in tensorflow/tensorboard@628b78f#diff-9f7ffee070d3d2429db0b7178d355ec6L229-L241