WestHealth / pyvis

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

Duplicated graph heading #190

Open matbun opened 1 year ago

matbun commented 1 year ago

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 commented 1 year ago

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 ?

scalasm commented 1 year ago

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

scalasm commented 1 year ago

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

yolave commented 6 months ago

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?