I just implemented Ag-Grid as a custom component, just for testing. I followed some tutorials and despite the result being far from production code, I liked it and I’m planning to use it on some personal small projects.
I’d like to mention I’ve zero experience with react or front-end development. Also, programing is more a hobby than a job. So, I expect there is room for lots of improvement on the code I wrote.
Thanks a lot for sharing your streamlit-agGrid , I see lots of users on the forum looking for an alternative interactive datagrid, so if it solves your problems I’m pretty sure this will help other users as well !
(Also I peeked under the hood and wow, for a first time Python+React development you got a lot of things right!)
Bonus suggestions if you have some time for this:
Are you maybe able to record a small GIF to show people how it works ?
We are multiple component creators to share a demo of the component on Streamlit Share, have you considered building a demo there for those who don’t know what’s ag-grid ?
Are you able to edit the Component Tracker with your newly created component ? This helps us keep track of everything the community built
Anyway, great work, I’m looking forward to using it, and maybe contribute …
This looks super promising. I managed to get it to work locally but I’m struggling deploying it using pipenv. I get the following error:
ERROR: Could not find a version that matches streamlit-aggrid (from -r /var/folders/g_/td0tdmf14_d_vg1lkn9zbd_c0000gp/T/pipenvel8uovqwrequirements/pipenv-78j7apf0-constraints.txt (line 3))
No versions found
Was https://pypi.org/simple reachable?
Wow, this is awesome!
Is it possible to style the cell? I try to use df.style but doesn’t work (AttributeError: ‘Styler’ object has no attribute ‘to_json’)
Not yet… I had to spent sometime fixing pypi deployment. I’ll take a look into that later this week. If anyone wants to take a shot first, solution is somewhere here https://www.ag-grid.com/javascript-grid-export/
And the selectable checkbook to the left would be a great feature too. It’s already available with the selectable data component library but combining everything together would just make sense at this point.
I’ve updated the pip install and now your component doesn’t seem to be working anymore - see the issue I have when trying to run one of your files below: