1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Layout must be a dash component or a function that returns a dash component

Discussão em 'Python' iniciado por Stack, Setembro 14, 2024.

  1. Stack

    Stack Membro Participativo

    I just set up Dash on a local (home) Ubuntu server and to test am using their own samples. Only thing I changed is the app.run. When I execute the file I get the title error.

    I looked around here on Stackoverflow and on the Plotly forums but the only info I can find is about code errors. I have checked that I copied and pasted the samples correctly, and they are.

    Any pointers which can be provided are appreciated.

    from dash import Dash, html

    app = Dash()

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

    if __name__ == '__main__':
    #app.run(debug=True)
    app.run_server(debug=True, host='0.0.0.0')
    # also tried app.run(debug=True, host='0.0.0.0') here with same outcome


    [​IMG]

    Continue reading...

Compartilhe esta Página