Interactive Graph Vis for Streamlit.
Project description
Based on react-d3-graph
Install
pip install streamlit-agraph
Use
import streamlit
from streamlit_agraph import agraph, Node, Edge, Config
nodes = []
edges = []
nodes.append( Node(id="Spiderman", size=400, svg="http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_spiderman.png") )
nodes.append( Node(id="Captain_Marvel", size=400, svg="http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_captainmarvel.png") )
edges.append( Edge(source="Captain_Marvel", target="Spiderman", type="CURVE_SMOOTH") )
config = Config(width=500,
height=500,
directed=True,
nodeHighlightBehavior=True,
highlightColor="#F7A7A6", # or "blue"
directed=True,
collapsible=True,
# coming soon (set for all): node_size=1000, node_color="blue"
)
return_value = agraph(nodes=nodes,
edges=edges,
config=config)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
streamlit-agraph-0.0.30.tar.gz
(186.3 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_agraph-0.0.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83a5663ef2d096b665ec01991e6ad33c92d8fe7cb177ee5a2ab848c89aa470d4 |
|
MD5 | e29ae6f145964180b3ab6dd9dd11a865 |
|
BLAKE2b-256 | 5d282d78f9ac2003e685297818bbf41a5fff78fb50eb9e71516dc0902428695a |