ContentEmailOperator: rich HTML emails with Matplotlib graphs as images#451
ContentEmailOperator: rich HTML emails with Matplotlib graphs as images#451patrickleotardif wants to merge 1 commit intoapache:masterfrom
Conversation
There was a problem hiding this comment.
If this works only with Presto it should be named as such. I think it should be easy to generalize it to work with any hooks that has the required methods.
There was a problem hiding this comment.
Good point.
|
Closing for now since this is ancient |
|
|
|
@patrickleotardif I was looking for email operator that provided matplotlib or highcharts like charts. If you ever tackle this again, I would be very interested in it! |
|
@r39132 Sounds good! I already have something similar to this commit running here. I think it just needs to be cleaned up and done a bit more thoughtfully before integrating here. |
|
Cool! Thx. |
(Intended as an initial draft since the current approach is pretty hacky <- @mistercrunch )
Usage in a DAG:
In this case email.html is a Jinja template with specific macros to generate the matplotlib images. The data dict is simply Presto queries now (but could be generalized).
e.g. email.html