Fix network graph height to use viewport units (#2590)

This commit is contained in:
Sayon Dey
2026-05-05 22:16:47 +05:30
committed by GitHub
parent 03b62027f6
commit c510734e5e
+1 -1
View File
@@ -245,7 +245,7 @@ def save_graph_report(filename: str, username_results: list, db: MaigretDatabase
# Generate interactive visualization # Generate interactive visualization
from pyvis.network import Network # type: ignore[import-untyped] from pyvis.network import Network # type: ignore[import-untyped]
nt = Network(notebook=True, height="750px", width="100%") nt = Network(notebook=True, height="100vh", width="100%")
nt.from_nx(G) nt.from_nx(G)
nt.show(filename) nt.show(filename)