You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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")
`
The text was updated successfully, but these errors were encountered: