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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: st-agraph-symrzknr-0.0.39.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.39.tar.gz
Algorithm Hash digest
SHA256 b339a2624f48f2b6eeb14aaf43ff4db3c675faf1f5330b2bdb2e79f5d947fb54
MD5 233389b4d872d17e3f703e1cb51bf165
BLAKE2b-256 d8ba940775901fc0e6c41a406933fc46db96ca80507aa6c7d7e961348703b02a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: st_agraph_symrzknr-0.0.39-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.39-py3-none-any.whl
Algorithm Hash digest
SHA256 94eb1e713e2e44a7b309544b15ab4d3aaf10c9b3ddd85548bcb12fb285f20caf
MD5 c7de3842efe15fffdac9082695f39d16
BLAKE2b-256 5d55898562cb06e7e8d5a279c3f8d59f41e3f477bef7d10aabe7e351aab07922

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