Repository navigation
Generated html is blank #41
Copy link
Copy link
Open
Description
Activity
Thanks for filing this issue @NguyenTuan-Dat ! I will take a look at this today and get back to you ASAP.
Thanks again for filing @NguyenTuan-Dat ! I need a bit more info for the following before I can debug:
- It looks like you're defining a tree somewhere outside of the above snippet (see
for node in tree). I can't run the snippet without seeing howtreeis defined. - I think you added some methods to
Tree(get_childrens, tree indexingtree[node]). This is really cool, and please feel free to submit a Pull Request with these contributions! I can't run the snippet without these methods.
Could you send a minimal reproducible example with your issue? (Also: it looks from the above image that you're previewing your .html file with the spacebar –– as far as I know, the tree image cannot be rendered from preview; it'll only be visible if you open the file in the browser.)
- It looks like you're defining a tree somewhere outside of the above snippet (see
Hi, my html is also blank.
Here is the code I used (basically same as the tutorial)from treeplotter.tree import Node, Tree root = Node(value=1.0, name=None) child1 = Node(value=0.5, name=None) child2 = Node(value=1.0, name=None) child3 = Node(value=3.0, name="A") root.children = {child1, child2, child3} root.children granchild1 = Node(value=0.5, name=None) granchild2 = Node(value=3.0, name="B") granchild3 = Node(value=2.0, name="C") greatgrandchild = Node(value=1.0, name="D") child1.add_children([granchild1, granchild2]) child2.add_child(granchild3) granchild1.add_child(greatgrandchild) tree = Tree(root=root) from treeplotter.plotter import create_tree_diagram create_tree_diagram( tree=tree, save_path="C:\Eszter\stuff", webshot=True, verbose=True )I am attaching the output files:
stuff.zipThank you for your help on this
Reacted by Luke Poeppel, Guy Tevet and Jonathan CampbellRunning the same code as @celeszter , I'm getting blank HTML as well, and the following JS error:

Metadata
Metadata
Assignees
Labels
No labels
I'm tried follow the tutorial but output is blank like this image.

This is my code, can you help me check my mistake?