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

Uploaded Source

Built Distribution

st_agraph_symrzknr-0.0.40-py3-none-any.whl (190.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: st-agraph-symrzknr-0.0.40.tar.gz
  • Upload date:
  • Size: 185.9 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.40.tar.gz
Algorithm Hash digest
SHA256 8159a494da79d52139800e0474ee5a0a8a0bd28afdecf6564dddcdfd9f3cd5df
MD5 886528647daba80e3d233b221d679f0e
BLAKE2b-256 be52a04c42036f87c7a777b8fe91165253188848fdb9b49429c3f21e27b263e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: st_agraph_symrzknr-0.0.40-py3-none-any.whl
  • Upload date:
  • Size: 190.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.40-py3-none-any.whl
Algorithm Hash digest
SHA256 79e294564243c3882e6f18f9f7048b36ff7522d2d463a8b86663b5fa11b80f03
MD5 751332d09f612d58754593537dd191f6
BLAKE2b-256 0ced3d23d889c27a089ea87f43bf0ff1164f979f70e5bcb85b585a6b51ec617c

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