Skip to content

wellsaid-labs/streamlit-mui-datatable

 
 

Repository files navigation

Streamlit Datatable Component

This repo contains a basic implementation of a Streamlit Datatable using the MUI Datatable under the hood.

Installation

python -m pip install git+https://github.com/wellsaid-labs/streamlit-mui-datatable.git

Usage

from streamlit_datatable import st_datatable
import pandas as pd

df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})
st_datatable(df, title="You got this!")

Contributing

Prerequisites

  1. Ensure you have Python 3.6+, Node.js, and npm installed.

  2. Clone this repo.

  3. Initialize the component frontend:

    $ cd streamlit_datatable/frontend
    $ npm install    # Install npm dependencies
  4. In another terminal, create a new Python virtual environment:

    $ python3 -m venv venv
    $ . venv/bin/activate
    $ python -m pip install -r requirements.txt

Developing

  1. Run the component frontend:

    $ npm run start  # Start the Webpack dev server
  2. Run the streamlit development app:

    $ python -m streamlit run development.py

Building

  1. Build the component frontend:

    $ npm run build

More Information

About

A streamlit component wrapper over a Material-UI Datatable.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 42.7%
  • Python 29.1%
  • HTML 26.6%
  • Shell 1.6%