Introducing Dash

Dash is a dream combination of JavaScript and Python. Its like best of both the worlds (I still think so). Reactive-ness of JavaScript framework React and Statistical capabilities of Python modules.

When I was working on react applications, I really liked the virtual DOM element and quick responses of react however  JavaScript lacks the statistical libraries that python has.

When I was learning python front-end frameworks django and flask, they both seems archaic as compared to nodejs. django has steep learning curve as well. Creating charts and having real time update using django channels is quiet complex.

I was not aware of dash but while searching for some chart related updates, I came across dash. I was super excited to learn more about Dash.

This excitement got diminished in next few days due to “different” way to writing html. This is simillar confusion as when I started learning JSX. (Yeah, mankind worked for decaded to put JavaScript out of html and ended by putting html inside JavaScript !). I was about to give up on Dash and think of alternatives such as showing matyplotlib graphs on webpage, explored bokeh and even (parent of Dash 🙂 ), however, I decided to stick with Dash for a while to see how things are structured.

Dash documentation is not adequate, however its sufficient for you to get started but you need to go through it couple of time. Don’t go through documentation from start to end like a book but find a problem and try to implement it (well, that is the best way to learn any programming language or framework )

To create a web app with Flask or django, and then combining it with interactive JS frameworks, and then incorporating the interactivity with jquery, ajax, and React would take you quite a bit of time and code and this will make application very complex and hard to maintain, however with Dash, this is very easy.


Leave a Reply

Your email address will not be published. Required fields are marked *