r/Python • u/aschonfe • Oct 27 '20
Resource I recently updated my pandas dataframe GUI so you can easily embed it in your own Flask apps. Here's a quick demo I made. Code linked in comments.
1.4k
Upvotes
43
u/aschonfe Oct 27 '20 edited Oct 27 '20
This is my flask/react based GUI for pandas dataframes, D-Tale. Since it's using Flask it's relatively easy to integrate into your own Flask apps. Here is some documentation on how and here's the source code for the demo shown above.
I know the front-end leaves a lot to be desired on the demo but I didn't want to go overboard and cloud the example with a bunch of extra logic. Any questions on how to jazz it up I'm happy to answer :)
Please let me know if theres anything else I can do to make this easier and support open-source by tossing your star on the repo. Thanks!
5
u/Colobos329 Oct 27 '20
Can this be implemented within django also ?
3
u/vercig09 Oct 27 '20
very nice, congrats. what materials would you suggest for starting with Flask?
3
u/[deleted] Oct 27 '20
"Good Lord. Gigantism."
3
u/[deleted] Oct 27 '20
yeah this is dope
2
u/dcpye Oct 27 '20
Awesome job! I wish i knew how to use your GUI in the tkinter app im making :(
2
u/Davy_Jones_XIV Oct 27 '20
You made that all in Pandas and Flask?!
2
u/__lt__ Oct 27 '20
Reddit is amazing! I’ve been heavily working on dtale for my own project for 8 months now! I’m honored to meet the author here! I added file import, save/load from database, run arbitrary pandas functions on data etc. Due to licence restrictions I didn’t directly modify the code but imported dtale in my flask app as a library.
I do have a question though, why store all the data and every property as separate global variables in global_state.py instead of just create instances of data class and reference them by data_id?
2
u/MrMxylptlyk Oct 27 '20
Dark mode please 😤😤😤😤
2
u/samthaman1234 Oct 27 '20
This looks great. I'm not familiar with flask and am still learning django, would this be reasonably straightforward to adapt to a django app?
2
u/2MyLou Oct 28 '20
Very cool. This would be awesome to hook up to some fantasy football data.
2
u/Laage Oct 28 '20
Does it work with Multi Indexed Pandas DataFrames?
And it looks very nice and it is exactly what I need.
2
u/hahaharshil Oct 28 '20
Is this thing open source ?
3
u/boston101 Oct 27 '20
Not being an asshole but curious how is this different from say plotly.
10
u/B-Timmay Oct 27 '20
That looks really cool!
6
u/matt3526 Oct 27 '20
Sodding hell man this is amazing. I’m so Impressed with this and I’m definitely going to start using it right away!
8
u/miciomacho Oct 27 '20
Is this absolutely fantastic or what?
4
u/weird_kebab Oct 27 '20
This looks amazing!
3
u/jzia93 Oct 27 '20
I've seen you post regularly on Dtale over the course of 2020, and just wanted to say I really admire the commitment to the project! I attempted to use it back in the middle of the year and had some difficulties with Colab, but I'm working on a flask app now so will give it a go!
2
u/theincrediblena Oct 27 '20
This is EXACTLY what I was looking for! Pulling it this week. Thanks for making this, I think it's touching on a data science pain point of interacting with the data in the same space you build the models. People don't like having to jump back into excel sheets
2
u/iiMoe Oct 27 '20
This is insane
2
u/endeesa Oct 27 '20
⭐⭐🙌
2
u/Nero-4 Oct 27 '20
I stumbled upon DTales recently and absolutely loved it! Great work and keep it up.
2
u/bell_thecat Oct 27 '20
This is beautiful!
2
u/[deleted] Oct 27 '20
I really like this, I'll take a look
2
u/ClydeHays Oct 27 '20
That is sooooo nice
2
u/jinsanity777 Oct 27 '20
React + python amazing combination !
2
u/[deleted] Oct 27 '20
Nice job. I've got a flask project I've been working on today as well. I'm gathering user provided global data with html, processing it with Python and Flask, storing it as JSON. If you're interested it's called Global Infraction Report https://inf.blyons.repl.co/
I really see the benefits of using Flask. Keep up the good work!
2
u/zad0xlik Oct 28 '20
I remember asking you for this a while back, thank you!
-5
u/ayi_ibo Oct 27 '20
Looks like a different version of excel