Shiny-for-Python-Building-an-Email-Dashboard
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".
Setup
System dependencies
- Python v3.x
Gather environment variables
You'll need the following values:
ACCESS_TOKEN = ""
CLIENT_ID = ""
CLIENT_SECRET = ""
Add the above values to a new .env
file:
$ touch .env # Then add your env variables
Install dependencies
$ 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
Usage
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.
Learn more
Visit our Nylas Python SDK documentation to learn more.