This sample will show you to create an email dashboard using Shiny for Python.
You can follow along step-by-step in our blog post "Shiny for Python: Building an Email Dashboard".
- Python v3.x
You'll need the following values:
V3_TOKEN =
GRANT_ID =
V3_HOST =
Add the above values to a new .env
file:
$ touch .env # Then add your env variables
$ pip3 install nylas # Nylas API SDK
$ pip3 install shiny # Shiny for Python
$ pip3 install seaborn # Python data visualization library
$ pip3 install pandas # Data analysis library
$ pip3 install wordcloud # Wordcloud generator
$ pip3 install matplotlib # library for creating static, animated, and interactive visualizations
Create the application using the following command:
$ shiny create mail_dashboard
And modify the contents of app.py
Run the script using the shiny run
command:
$ shiny run --reload mail_dashboard/app.py
The dashboard should run on your browser on port 8000.
Visit our Nylas Python SDK documentation to learn more.