-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Debugger Plugin]: Add clickable links to Session.runs table #800
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks Shanqing!
Yeah, we currently assume that the node exists by setting selectedNode
to a certain value.
.sidebar { | ||
position: relative; | ||
height: 100%; | ||
/* width: 40%; */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably just delete these commented lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
return((graphElementName) => { | ||
let nodeName = graphElementName; | ||
// If it is a tensor name, get the node name. | ||
if (nodeName.indexOf(':') !== -1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: Maybe compute once and reuse value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This computation is pretty cheap. So I'd rather save the space.
|
||
.node-or-tensor-element { | ||
text-decoration: underline; | ||
cursor: pointer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: Add a .node-or-tensor-element:hover
effect to emphasize how an item is clickable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion. I did this for all clickable elements currently present in the Debugger Plugin.
Clicking a node or tensor in the table focuses on the corresponding node in the graph visualizer, if it exists.
Clicking a node or tensor in the table focuses on the corresponding node
in the graph visualizer, if it exists.