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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: st-agraph-symrzknr-0.0.41.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.41.tar.gz
Algorithm Hash digest
SHA256 da717582176457c0ead59ebe5907b765475bcc274aaa207d3a4b76963ca8b94f
MD5 b1b5e219e32cec2746c4d1422a89dc73
BLAKE2b-256 47f70bd8f17c1bdf29671682b45cc885555e667e6110938cbb5ed568feb8a989

See more details on using hashes here.

File details

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

File metadata

  • Download URL: st_agraph_symrzknr-0.0.41-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.41-py3-none-any.whl
Algorithm Hash digest
SHA256 d9fdf2faa4e9a3488bcb4e830833896f3663e4ec838c8f91bed4b025ce6ee9c3
MD5 cfd4bafbf3d681d8a61bbfde8ac98f1c
BLAKE2b-256 b4421ca1228b4e97aa83be350cef54dcdbdd00871c98d8df5c5747b6a813e40c

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