Insert Dash Dashboard Into Flask App [Jinja]

Hi,

I have an admin dashboard app that I built on Flask with a sidebar, navbar, and other interactive features. I want to be able to render Dash-based dashboards on some pages within my Flask app - ideally with my Flask sidebar and navbar still on the page.

I know that you can use iFrames, Dispatch Middleware, etc to host Dash apps on Flask servers.

However, I am a little reluctant to use these options. iFrames are quite slow (particularly if you have a few dashboards) and the other options render a new webpage without my sidebar, navbar, or other features already built into my Flask app.

Ideally, I’d like to be able to render a Dash app through a Jinja template but I understand that this implementation is not currently supported by Dash.

Is there any better way of doing this?

3 Likes