Skip to main content

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.38.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

st_agraph_symrzknr-0.0.38-py3-none-any.whl (196.2 kB view details)

Uploaded Python 3

File details

Details for the file st-agraph-symrzknr-0.0.38.tar.gz.

File metadata

  • Download URL: st-agraph-symrzknr-0.0.38.tar.gz
  • Upload date:
  • Size: 4.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

Hashes for st-agraph-symrzknr-0.0.38.tar.gz
Algorithm Hash digest
SHA256 681d829524466ed18853a15aaaa176b7eddea109dfb7c2ba2b2e3732e9881997
MD5 c70ce651f3557ef8ad49acf7767430c5
BLAKE2b-256 8271088aee51708748849b9ded1183e8ad85e18f82decc7fbacb8b414011701e

See more details on using hashes here.

File details

Details for the file st_agraph_symrzknr-0.0.38-py3-none-any.whl.

File metadata

  • Download URL: st_agraph_symrzknr-0.0.38-py3-none-any.whl
  • Upload date:
  • Size: 196.2 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

Hashes for st_agraph_symrzknr-0.0.38-py3-none-any.whl
Algorithm Hash digest
SHA256 2c5e4d33bc7cba328b4deff9da3f65b2d7a6d3c4ed917b1f9961e5b821c48ce6
MD5 2a7d3e527500b5c308f77ed8beda56f4
BLAKE2b-256 71b1ba1bf600ba93243465c72c3f86a3470f3020cc3f0162db072c458632f79d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page