[Python] Dash hello World doesn't show anything

Discussão em 'Python' iniciado por Stack, Julho 17, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to get started with Dash but even the hello World example doesn't show up on two different laptops under Windows 11 started from within Visual Studio 2022

    "my" code

    # https://dash.plotly.com/tutorial
    from dash import Dash, html

    app = Dash(__name__)

    app.layout = html.Div([
    html.Div(children='Hello World')
    ])

    if __name__ == '__main__':
    app.run()


    If I 'Start without debugging' the following appears in the command window [​IMG]

    If I 'Start with debugging' I get [​IMG]

    and if I start with app.run(debug=True) I don't get any further than [​IMG]

    Examples I found that should display a figure in a browser but those do not work either.

    I also tried

    if __name__ == '__main__':
    app.run(host="127.0.0.1", port=5000)


    What am I missing that makes that I don't see any output?

    Continue reading...

Compartilhe esta Página