@@ -362,7 +362,7 @@ def _add_legend(self, path):
362
362
with open (path , "w" , encoding = "utf8" ) as file :
363
363
file .write (html )
364
364
365
- def render (self , elements , path = "lineage_graph_pyvis.html.html " ):
365
+ def render (self , elements , path = "lineage_graph_pyvis.html" ):
366
366
"""Render graph for lineage query result.
367
367
368
368
Args:
@@ -374,7 +374,8 @@ def render(self, elements, path="lineage_graph_pyvis.html.html"):
374
374
elements["edges"] contains list of tuples, each tuple represents an edge
375
375
format: (edge source arn, edge destination arn, edge association type)
376
376
377
- path(optional): The path/filename of the rendered graph html file. (default path: "lineage_graph_pyvis.html.html")
377
+ path(optional): The path/filename of the rendered graph html file.
378
+ (default path: "lineage_graph_pyvis.html")
378
379
379
380
Returns:
380
381
display graph: The interactive visualization is presented as a static HTML file.
@@ -515,7 +516,7 @@ def _get_visualization_elements(self):
515
516
elements = {"nodes" : verts , "edges" : edges }
516
517
return elements
517
518
518
- def visualize (self , path : Optional [str ] = "lineage_graph_pyvis.html.html " ):
519
+ def visualize (self , path : Optional [str ] = "lineage_graph_pyvis.html" ):
519
520
"""Visualize lineage query result.
520
521
521
522
Creates a PyvisVisualizer object to render network graph with Pyvis library.
@@ -524,7 +525,8 @@ def visualize(self, path: Optional[str] = "lineage_graph_pyvis.html.html"):
524
525
PyvisVisualizer for rendering graph.
525
526
526
527
Args:
527
- path(optional): The path/filemname of the rendered graph html file. (default path: "lineage_graph_pyvis.html.html")
528
+ path(optional): The path/filename of the rendered graph html file.
529
+ (default path: "lineage_graph_pyvis.html")
528
530
529
531
Returns:
530
532
display graph: The interactive visualization is presented as a static HTML file.
0 commit comments