Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 2.18 KB

readme.md

File metadata and controls

67 lines (44 loc) · 2.18 KB

AGridable is a Python library which makes formatting tables in your Dash app a breeze 💨

It's a wrapper for the wonderful Dash AG Grid library and enables users to quickly and easily apply formatting, without having to go through the (sometimes rather complex) process of configuration.

For example, you can quickly and easily apply conditional colour formatting based on the range of values in a column.

The project was created by James Laidler whilst working at Electrify Video Partners.

Quickstart

Install AGridable

First, it's good practice to create a virtual environment to install AGridable into; here, we're using conda:

conda create -n agridable python=3.12

Once the environment is created, activate it:

conda activate agridable

Then install the AGridable library:

pip install agridable

Use AGridable

The best way to get started with AGridable is to look at the examples in the examples folder. These contain simple Dash apps that showcase how AGridable can be used to quickly and easily format a dataframe.

To run these examples, first ensure you have the virtual environment where you installed AGridable activated (here, we're using the virtual environment created in the Install Python Library step):

conda activate agridable

Then, clone the repo (here, we clone it to the home directory):

# cd to home directory
cd
# Clone repo
git clone https://github.com/Electrify-Video-Partners/AGridable.git

Finally, run one of the examples (here, we're running the simple_example.py):

python AGridable/examples/simple_example.py

This should start a Flask server running the example Dash app; navigate to the URL where the server is running in your browser to see the app.

Contributing to AGridable

Contributing to AGridable is actively encouraged; we'd love to see more functionality added to the library! For steps on how to contribute, see the contributing doc.