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
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"))
return_value = agraph(nodes=nodes,
edges=edges,
nodeHighlightBehavior="true",
node_color="blue", node_size=1000,
highlightStrokeColor="blue",
highlightColor="lightblue" )
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.26.tar.gz
(683.9 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_agraph-0.0.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcef471d9a832096806edfeb8489dc30058dcac93b8cf2e0a597ad9a06751f6d |
|
MD5 | 0b9bc13bcf997e99d392b787a45383e6 |
|
BLAKE2b-256 | 5a274c2c91328cbaf848bbcf2cdf8a1ce46bdf3ea6105f1f5ae644c8f155b7e7 |