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

sdEvent = sanddance()

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.1.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

streamlit_sanddance-0.0.1-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit-sanddance-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0f320b94ba35c0f078e10540353b3d568efec345e743785a113bd55df4ac6e6f
MD5 42aa8c49246d9c1325f017976725eb46
BLAKE2b-256 c542c019de6ebbb4c7949780825580a1b77f468ff6629b7fa6e6da4beacbae7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_sanddance-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27157ab58927807bcd462c1eb93d4b1fc156c8051d38aff8896c4968b908b080
MD5 9c8e6c729dae4944183aac958c8bc91e
BLAKE2b-256 5661fd26c98b71fce2dbbb5cabfb63cc69923bd00c048aa4e58dab14e4f5f951

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