Update the embedding projector's publish dialogue to be clear about linking to directly to the raw
gist file, rather than the gist description page with all the github chrome. Change: 153091327
This commit is contained in:
parent
a5f08e69a0
commit
59ccf014e8
tensorflow/tensorboard/components/vz_projector
@ -347,6 +347,7 @@ paper-dropdown-menu paper-item {
|
||||
</p>
|
||||
<p>
|
||||
One option is using a <a target=_blank href="https://gist.github.com/">github gist</a>.
|
||||
If you choose this approach, make sure to link directly to the raw file.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -402,8 +402,9 @@ export class DataPanel extends DataPanelPolymer {
|
||||
embeddings: [{
|
||||
tensorName: 'My tensor',
|
||||
tensorShape: [1000, 50],
|
||||
tensorPath: 'https://gist.github.com/.../tensors.tsv',
|
||||
metadataPath: 'https://gist.github.com/.../optional.metadata.tsv',
|
||||
tensorPath: 'https://raw.githubusercontent.com/.../tensors.tsv',
|
||||
metadataPath:
|
||||
'https://raw.githubusercontent.com/.../optional.metadata.tsv',
|
||||
}],
|
||||
};
|
||||
this.setProjectorConfigTemplateJson(
|
||||
@ -427,7 +428,7 @@ export class DataPanel extends DataPanelPolymer {
|
||||
bookmarksFieldCheckbox.addEventListener('change', () => {
|
||||
if ((bookmarksFieldCheckbox as any).checked) {
|
||||
projectorConfigTemplateJson.embeddings[0].bookmarksPath =
|
||||
'https://gist.github.com/.../bookmarks.txt';
|
||||
'https://raw.githubusercontent.com/.../bookmarks.txt';
|
||||
} else {
|
||||
delete projectorConfigTemplateJson.embeddings[0].bookmarksPath;
|
||||
}
|
||||
@ -438,7 +439,7 @@ export class DataPanel extends DataPanelPolymer {
|
||||
metadataFieldCheckbox.addEventListener('change', () => {
|
||||
if ((metadataFieldCheckbox as HTMLInputElement).checked) {
|
||||
projectorConfigTemplateJson.embeddings[0].metadataPath =
|
||||
'https://gist.github.com/.../optional.metadata.tsv';
|
||||
'https://raw.githubusercontent.com/.../optional.metadata.tsv';
|
||||
} else {
|
||||
delete projectorConfigTemplateJson.embeddings[0].metadataPath;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user