Using Superset within an existing project

273 views
Skip to first unread message

rob...@digitgaming.com

unread,
Apr 21, 2017, 11:10:35 AM4/21/17
to airbnb_superset
We've been using Superset for a while. We also have our own dashboard we use for game administration.

We'd like to incorporate Superset in to that dashboard. Right now we have some iframes which hold certain Superset dashboards, but it's not great. I'd like to set it up so Superset pulls accounts from our existing infrastructure (We've already set up a custom SecurityManager that does a bit of this), and point to Superset views. Fortunately, our dashboard uses Flask, Jinja, etc. so this seems like it should be feasible.

Has anyone tried this? I'm looking at either using Flask Application Dispatching or importing superset as a module, but am not sure how to proceed.


Maxime Beauchemin

unread,
Apr 28, 2017, 8:53:51 PM4/28/17
to airbnb_superset
I think it'd be hard and prohibitive to import our python views into your app since superset isn't exposed as a Flask Blueprint. You also have to somehow import our javascript modules and line things up.

<iframe> is probably your best bet until we start shipping an npm package that allows you to embed js object that would leverage your existing Superset backend.

Max

rob...@digitgaming.com

unread,
May 2, 2017, 6:14:05 AM5/2/17
to airbnb_superset
Yeah, so far our research confirms "hard and prohibitive". iframes with a custom SecurityManager to keep accounts tied together seems to work reasonably well for the time being.
Reply all
Reply to author
Forward
0 new messages