ipytree icon indicating copy to clipboard operation
ipytree copied to clipboard

Programmatically go to node

Open edan-bainglass opened this issue 1 year ago • 0 comments

Is there a way to programmatically open a particular node? This would mean expanding the minimal set of parent nodes to get to this particular node.

For example, consider this fully expanded view:

a1
  b1
  b2
    c1
      d1  
    c2
      d2
      d3
  b3
    c3
    c4

If I programmatically selected d1, I would see:

a1
  b1
  b2
    c1
      d1 <- selected
    c2
  b3

leaving c2 and b3 collapsed.

edan-bainglass avatar Jan 03 '25 05:01 edan-bainglass