This repo contains a basic implementation of a Streamlit Datatable using the MUI Datatable under the hood.
python -m pip install git+https://github.com/wellsaid-labs/streamlit-mui-datatable.git
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!")
-
Ensure you have Python 3.6+, Node.js, and npm installed.
-
Clone this repo.
-
Initialize the component frontend:
$ cd streamlit_datatable/frontend $ npm install # Install npm dependencies
-
In another terminal, create a new Python virtual environment:
$ python3 -m venv venv $ . venv/bin/activate $ python -m pip install -r requirements.txt
-
Run the component frontend:
$ npm run start # Start the Webpack dev server
-
Run the streamlit development app:
$ python -m streamlit run development.py
-
Build the component frontend:
$ npm run build