Skip to main content

Streamlit component that allows you to view a SandDance visualization of a dataframe.

Project description

streamlit-sanddance

Streamlit component that allows you to view a SandDance visualization of a dataframe.

Installation instructions

pip install streamlit-sanddance

Usage instructions

import streamlit as st

from streamlit_sanddance import sanddance

#sample random DataFrame
df = pd.DataFrame(
     np.random.randn(20, 3),
     columns=['a', 'b', 'c'])

sdEvent = sanddance(df)

st.write(sdEvent)

The return value is a dictionary of visual interaction events such as selections.

Dev Setup

  • Ensure you have Python 3.6+.
  • Create a new Python virtual environment for the Streamlit component:
$ cd streamlit
$ python3 -m venv venv  # create venv
$ . venv/bin/activate   # activate venv
$ pip install streamlit # install streamlit
  • Initialize and run the component frontend:
$ cd streamlit/sanddance/frontend
$ npm install    # Install npm dependencies
$ npm run start  # Start the Webpack dev server
  • From a separate terminal, run the Streamlit app:
$ cd streamlit
$ . venv/bin/activate  # activate the venv you created earlier
$ pip install -e . # install streamlit-sanddance as editable package
$ streamlit run sanddance/example.py  # run the 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-sanddance-0.0.6.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

streamlit_sanddance-0.0.6-py3-none-any.whl (8.0 MB view details)

Uploaded Python 3

File details

Details for the file streamlit-sanddance-0.0.6.tar.gz.

File metadata

  • Download URL: streamlit-sanddance-0.0.6.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for streamlit-sanddance-0.0.6.tar.gz
Algorithm Hash digest
SHA256 bb52c993207da27f6561863c22b13e1ef15c7681bb469b215b9dbf0750e508b3
MD5 9697110f8d0dd2c61e52d94f499bfa96
BLAKE2b-256 1cf5be657fc4045a48910039ec4e35c4c6276f5cba1b2c11b51927d7e4fb028a

See more details on using hashes here.

File details

Details for the file streamlit_sanddance-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_sanddance-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8946d79ffdcffc0b7393b498500ac4c2befb4c32b55305e6643708ee455dcda7
MD5 600f5a27431a6ae89b40c78346926e86
BLAKE2b-256 1a5d6b26d93ac3854e329b2926f5ec6e3f6532c72b8580a5e198760a94195ba9

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