[Python] Running a Dash app within a Flask app

Discussão em 'Python' iniciado por Stack, Maio 12, 2025.

  1. Stack

    Stack Membro Participativo

    I have an existing Flask app, and I want to have a route to another app. More concretely, the second app is a Plotly Dash app. How can I run my Dash app within my existing Flask app?

    @app.route('/plotly_dashboard')
    def render_dashboard():
    # go to dash app


    I also tried adding a route to the Dash instance, since it's a Flask app, but I get the error:

    AttributeError: 'Dash' object has no attribute 'route'

    Continue reading...

Compartilhe esta Página