Skip to content

daniel-yj-yang/pyvis-network

Repository files navigation

BuildTest PyPi License Downloads PythonVersion

Interactive Network Visualizations

This tool leverages the amazing vis-network library (https://visjs.github.io/vis-network/docs/network/) to provide interactive visualizations.

Installation

pip install pyvis-network

Sample Usage

>>> from pyvis_network import network, dataset
>>> nodes_df, edges_df = dataset().load_as_df("Example1")
>>> graph1 = network(title="Example1").add_df(nodes_df=nodes_df,edges_df=edges_df)
>>> graph1.show("example1.html")
>>> graph2 = graph1.clone_graph()
>>> graph2.show("example1_cloned.html")
>>> from pyvis_network import network, dataset
>>> nodes_df, edges_df = dataset().load_as_df("Machine_Learning")
>>> network(title="Machine Learning").add_df(nodes_df=nodes_df,edges_df=edges_df).show("ml.html")

Sample Screenshot

Example1

image1

Other Similar Tools

Releases

No releases published

Packages

No packages published

Languages