WestHealth / pyvis

Python package for creating and visualizing interactive network graphs.
http://pyvis.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
940 stars 162 forks source link

Pyvis HTML Output does not use 100% of the page #269

Closed vkuehn closed 5 months ago

vkuehn commented 6 months ago

This peace of code works nicely but in the outputfile only 30% of the window are used (either Chome or Firefox)

`import networkx as nx from pyvis.network import Network

G = nx.Graph() G.add_node(1) G.add_node(2) G.add_node(3)

G.add_edge(1, 2) G.add_edge(1, 3)

net = Network(height="100%", width="100%", directed=True, notebook=True) net.from_nx(G) net.show("simple.html") `

vkuehn commented 6 months ago

the reason is that the height is actually the height of the drawn network, which is usually not shown as 100%, not sure when and where such a configuration is needed but actually I would prefere a window hight and with especially when embedding it.

so Feature change request ?

vkuehn commented 5 months ago

closed because of inactivity