Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vkuehn opened this issue Dec 12, 2023 · 2 comments
Closed

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

vkuehn opened this issue Dec 12, 2023 · 2 comments

Comments

@vkuehn
Copy link

vkuehn commented Dec 12, 2023

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
Copy link
Author

vkuehn commented Dec 15, 2023

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
Copy link
Author

vkuehn commented Jan 7, 2024

closed because of inactivity

@vkuehn vkuehn closed this as completed Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant