superset icon indicating copy to clipboard operation
superset copied to clipboard

Jinja templated markdown viz

Open mistercrunch opened this issue 9 years ago • 7 comments

In the markdown visualization, it would be nice to be able to fetch data through a jinja macro and embed it.

You can imagine a jinja macro that would fetch a single cell through a sql query and embed it in the markdown somehow

mistercrunch avatar Jun 06 '17 22:06 mistercrunch

+1

jxb45 avatar Aug 16 '17 14:08 jxb45

Is this possible? or it is still a Work in Progress?

Thanks, Kartik

kartikshanbhag3333 avatar Feb 12 '18 04:02 kartikshanbhag3333

+1

burlakabogdan avatar Feb 12 '18 07:02 burlakabogdan

Personally, I would like to see access to the Pandas dataframe in the template for two main reasons.

  1. It's easy to implement
  2. It's very powerful.

Of course it requires you to know how to handle a dataframe. I created #5747 for this purpose, and if you feel it is a dupe of this then please close it as such. If this ticket though is more of a 'fetch a single cell' (as per @mistercrunch original comment) then I'd rather keep #5747 open as a separate issue.

kalium99 avatar Aug 30 '18 06:08 kalium99

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Apr 10 '19 16:04 stale[bot]

Just wanted to re-open the issue because i found a code snippet posted from @ankoh in #5747 which could be integrated in the master branch:

https://github.com/apache/incubator-superset/issues/5747#issuecomment-425669720

monkevlar avatar Sep 06 '19 08:09 monkevlar

Latest incarnation #6771 was closed as a #wont-fix

micimize avatar Sep 09 '19 00:09 micimize