Easy way to render an anytree object in plot.ly dash

Hi, right now I am using a python package called anytree to render a tree in python and do some computations per node.

The package anytree has a very easy render function that uses the tree structure and renders it into a PNG.


This is really good and simple but it’s not good for using it with plot.ly dash. In my case, I want to render the tree and let the user select nodes, or levels and based on this show some scatter plots.

I was wondering if I could still use this package and use some function that automatically renders the tree in a plot.ly graph w/o having to specify the coordinates for each node.

Hi, did you find the solution yet? I also use the anytree now and want to combine with plotly sunburst or treemap chat.