WestHealth / pyvis

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

Color picker is broken (from Network.show_buttons()) #288

Open YouGuessedMyName opened 3 months ago

YouGuessedMyName commented 3 months ago

To reproduce, run the following in a jupyter notebook (example taken from the documentation):

from pyvis.network import Network
import networkx as nx

g = Network(notebook=True)

g.from_nx(nx.florentine_families_graph())
g.show_buttons(filter_=['nodes'])

g.show("ex.html")

Click on the color picker (under nodes>color>background), select apply.

Expected behavior: The background color of the nodes changes. Actual behavior: The color picker goes blank and nothing changes in the graph.

I have tried it on Windows 10 and Ubuntu 24 and in python 3.12 and 3.7, both in notebook and stand-alone mode.

I don't know if this is a pyvis problem or a VisJs problem, but the devs should probably look into it.