Skip to main content

Dash wrapper around AG Grid, the best interactive data grid for the web.

Project description

Dash AG Grid

Dash AG Grid is a Dash component wrapper for the AG Grid JavaScript package, enabling you to display AG Grid components natively in your Dash app.

The underlying AG Grid JavaScript package is a third-party software component developed by AG Grid Ltd. Many features are available for free in the AG Grid Community version. Some features require a paid subscription to the AG Grid Enterprise version (more info available here). Both the community and enterprise versions are included in this component, but the enterprise features require you to provide a valid AG Grid license key. The demos which use Enterprise features are clearly marked.

v2.0.0 Release

If you have tried v2.0.0 alpha releases, release candidates, or our v1.x enterprise package, please see our Migration Guide (previously hosted here).

Getting Started

pip install dash-ag-grid

  1. Read the Medium article or watch the webinar introducing Dash AG Grid.
  2. See the live stock portfolio demo app from the webinar hosted by Plotly.
  3. Get the code for the demo app in GitHub
  4. Learn more about AG Grid in the upstream docs, including more information on community features and licensing for the enterprise version.

Documentation

At v2.0.0 release we're still working to move all the Dash AG Grid docs into the official Dash docs, https://dash.plotly.com/dash-ag-grid. In the meantime you can find them all here: https://dashaggrid.pythonanywhere.com/

docs_app

Contributing

Dash AG Grid welcomes community contributions!

If you have identified a bug or have an idea for a new feature, it's best to start with a GitHub issue. First look at existing issues at https://github.com/plotly/dash-ag-grid/issues to make sure this is not a duplicate. Then create a new issue. Bug reports should be accompanied by a small example app that someone else can copy and run to reproduce the problem.

The docs are under development as well. There are many examples in the official AG Grid docs that have not been included here yet. Please open an issue or do pull requests for edits or to add examples. Or post your question, comments or demo apps on the Dash Community Forum.

Running the docs app locally

cd docs/
pip install -r requirements.txt

Then you can run the apps there:

  • demo_stock_portfolio.py and demo_stock_portfolio_simple.py are small apps demonstrating some key features of Dash AG Grid, such as calculated columns, conditional formatting, and connecting its data and selected rows to graphs.
  • app.py runs a comprehensive documentation app. After we complete the open-source release, this will be merged into the main dash docs at https://dash.plotly.com/ but right now this app is the best way to explore Dash AG Grid.

Developing in this repo

Make sure you have Dash installed with dev and testing extras:

pip install dash[dev,testing]

Build the component (from the root of this repo):

npm i
npm run build

Now install the component in development mode:

$ pip install -e .

In development mode, Python uses the files in this directory when you import the package. So you can write a testing app in another folder, and whenever you change some code and rebuild the component here it will update in your testing app.

Create a production build

Create source and wheel distributions in the generated dist/ folder, after emptying out any previous builds:

rm -rf dist build
python setup.py sdist bdist_wheel

See PyPA for more information. Then use twine to upload these to PyPI:

twine upload dist/*

We also publish the JavaScript build to NPM, so unpkg has the bundles if users set serve_locally=False. First make a test of the NPM package, verify that its contents are reasonable:

npm pack

Then publish:

npm publish

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

dash_ag_grid-2.0.0.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

dash_ag_grid-2.0.0-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

Details for the file dash_ag_grid-2.0.0.tar.gz.

File metadata

  • Download URL: dash_ag_grid-2.0.0.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for dash_ag_grid-2.0.0.tar.gz
Algorithm Hash digest
SHA256 24fb0715338f59b4be8086b2ac6d23bfebd9d4dee3bfb29d186eb653430c87a8
MD5 94a4e880088895df7c741efd687b4e42
BLAKE2b-256 5607e74d91a90892f2c91bbcc05c51dbdcff7760b200a88ce560e62e058a2f96

See more details on using hashes here.

Provenance

File details

Details for the file dash_ag_grid-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dash_ag_grid-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1f9796cc63ed52479a4ae89ed58b70de0edcdb66160ec4dca045c8af28f5887
MD5 767ec3bb818f5ca480c7bef5c5d21b63
BLAKE2b-256 7db16a14c43dd68d23cc10c398e3d7d4dc7b100351dd01098ec20a2e8842139e

See more details on using hashes here.

Provenance

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