This is a quick AWS service to plot matplotlib plots from data in CARTO for popup images. For more info on what it does and how to use it, check out this medium post
virtualenv env
source env/bin/activate
pip install -r requirements.txt
zappa init
zappa deploy dev
That will set up a set of AWS lambda functios that can plot and return matplotlib images on demand using queries on CARTO
Expects the CARTO Query to have a column called cat and one called val
/dev/bar.img?q={query}&username={username}&xlabel={x}&ylabel={y}&title={title}
Expects the CARTO Query to have a column called cx and one called y
/dev/scatter.img?q={query}&username={username}&xlabel={x}&ylabel={y}&title={title}
Will make a seaborn pair plot of all the variables in the table
/dev/pairplot.img?q={query}&username={username}&xlabel={x}&ylabel={y}&title={title}
more to come...