Skip to content

Instantly share code, notes, and snippets.

@brannondorsey
Last active March 8, 2017 00:33
Show Gist options
  • Save brannondorsey/4b892f66976d3dbfca62f2049389e1ee to your computer and use it in GitHub Desktop.
Save brannondorsey/4b892f66976d3dbfca62f2049389e1ee to your computer and use it in GitHub Desktop.
Get the selected data in Tensorboard embedding projector to the dev console
// copy and paste the following snippet into the developer's console
function getSelected() {
query_selector = '.label.style-scope.vz-projector-inspector-panel.style'
+ '-scope.vz-projector-inspector-panel.style-scope.vz-projector'
+ '-inspector-panel.style-scope.vz-projector-inspector-panel'
items = document.querySelectorAll(query_selector)
names = []
items.forEach(item => {
if (item.childNodes[0].textContent) {
names.push(item.childNodes[0].textContent)
}
})
return names
}
print(getSelected())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment