Last active
March 8, 2017 00:33
-
-
Save brannondorsey/4b892f66976d3dbfca62f2049389e1ee to your computer and use it in GitHub Desktop.
Get the selected data in Tensorboard embedding projector to the dev console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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