mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-07 06:24:35 +00:00
Fix network graph height to use viewport units (#2590)
This commit is contained in:
+1
-1
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user