pyvis icon indicating copy to clipboard operation
pyvis copied to clipboard

Duplicated graph heading

Open matbun opened this issue 2 years ago • 4 comments

When I set the heading property in the Network class, my graph gets rendered with a double heading. To reproduce:

from pyvis.network import Network

net = Network(heading="My heading")
net.add_node(1, label="Node 1")  # node id = 1 and label = Node 1
net.add_node(2)  # node id and label = 2
net.show('net.html')

I obtain the following behavior:

image

matbun avatar Nov 14 '22 09:11 matbun

I found the source of the problem but I have not time to make a PR now. Could anyone remove the duplicated heading code from https://github.com/WestHealth/pyvis/blob/master/pyvis/templates/template.html#L54 to https://github.com/WestHealth/pyvis/blob/master/pyvis/templates/template.html#L56 ?

matbun avatar Nov 14 '22 09:11 matbun

I have the same exact issue - I think one of those is redundant and can be removed.

scalasm avatar Nov 14 '22 20:11 scalasm

I have created a PR for fixing the issue - hopefully it will get merged!

scalasm avatar Nov 14 '22 20:11 scalasm

The problem still persists. What happened with this issue?

The PR is ready to be reviewed and merged since ages. Is there something that can be done to push forward this?

yolave avatar Mar 05 '24 09:03 yolave