Introducing Asynchronous Dash

Set up env

Create a virtual environment and install the required libraries.

python -m venv .venv
source .venv/bin/activate
pip install async-dash dash-extensions

Create app

Instead of importing Dash from dash, import it from async_dash. Rest remains the same.

from async_dash import Dash
from dash import html, Output, Input, dcc
python app.py

Conclusion

This is just a small introduction to async-dash. With async-dash, you can also write truly asynchronous callbacks, use server sent events, etc. If you want to know more about this project or have any feedback, please visit https://github.com/snehilvj/async-dash.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store