Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions tensorboard/plugins/scalar/tf_scalar_dashboard/tf-scalar-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,15 @@ export class TfScalarCard extends PolymerElement {
onLoad,
onFinish
) => {
// Google-internal Colab doesn't support HTTP POST requests, so we fall
// back to HTTP GET (even though public Colab supports POST).
// See b/126387106.
const inColab = initialURLSearchParams.get('tensorboardColab') === 'true';
if (inColab) {
// Google-internal Colab doesn't support HTTP POST requests, so we fall
// back to HTTP GET (even though public Colab supports POST).

// TODO(b/170675710): Stop unconditionally forcing legacy endpoint when
// fixed.
const forceLegacyEndpoint = true;
if (inColab || forceLegacyEndpoint) {
return this._requestDataGet(items, onLoad, onFinish);
} else {
return this._requestDataPost(items, onLoad, onFinish);
Expand Down