Skip to main content

Interactive Graph Vis for Streamlit. Based on https://www.npmjs.com/package/react-d3-graph .

Project description

Install

pip install streamlit-agraph

Use

import agraph
import streamlit

nodes = ["Harry","Sally","Peter","Chris"]
edges = [("Harry","Sally"),("Peter","Chris")]

return_value = agraph(nodes=nodes,
                      edges=edges, 
                      nodeHighlightBehavior="true",
                      node_color="blue", node_size=1000,
                      highlightStrokeColor="blue",
                      highlightColor="lightblue" )

example

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

streamlit-agraph-0.0.5.tar.gz (683.8 kB view hashes)

Uploaded Source

Built Distribution

streamlit_agraph-0.0.5-py3-none-any.whl (691.6 kB view hashes)

Uploaded Python 3

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