Interactive Graph Vis for Streamlit, forked from original
Project description
Based on react-d3-graph
Install
pip install st-agraph-symrzknr
Use
import streamlit
from streamlit_agraph import agraph, Node, Edge, Config
nodes = []
edges = []
nodes.append( Node(id="Spiderman", label="Peter Parker", size=400, svg="http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_spiderman.png") ) # includes **kwargs
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", label="friend_of", target="Spiderman", type="CURVE_SMOOTH") ) # includes **kwargs
config = Config(width=500,
height=500,
directed=True,
nodeHighlightBehavior=True,
highlightColor="#F7A7A6", # or "blue"
collapsible=True,
node={'labelProperty':'label'},
link={'labelProperty': 'label', 'renderLabel': True}
# **kwargs e.g. node_size=1000 or node_color="blue"
)
return_value = agraph(nodes=nodes,
edges=edges,
config=config)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
st-agraph-symrzknr-0.0.42.tar.gz
(695.0 kB
view details)
Built Distribution
File details
Details for the file st-agraph-symrzknr-0.0.42.tar.gz
.
File metadata
- Download URL: st-agraph-symrzknr-0.0.42.tar.gz
- Upload date:
- Size: 695.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d99d3a18b6c47526e74b11182fceb64f8576181a9236d1b5006e95e87ed6b9fa |
|
MD5 | bbf8bccceeb682891bcb0e6510579401 |
|
BLAKE2b-256 | 2a1e4214e5059738ba671112c4614b858db15fd6caeb137b26ebc35cd9eff31d |
File details
Details for the file st_agraph_symrzknr-0.0.42-py3-none-any.whl
.
File metadata
- Download URL: st_agraph_symrzknr-0.0.42-py3-none-any.whl
- Upload date:
- Size: 703.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba3d12061b3525f78c4a8d258f53e29c9b4f5dea3636090831e2b7ca48f9f2a5 |
|
MD5 | 9735b0038efcfd49b06e99d1d6cd19d2 |
|
BLAKE2b-256 | f54b1214c9c30d45c5dedf920a11957db89967fc05beae733ba8bc832a8030c2 |