pyvis
pyvis copied to clipboard
Duplicated graph heading
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:
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 ?
I have the same exact issue - I think one of those is redundant and can be removed.
I have created a PR for fixing the issue - hopefully it will get merged!
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?