Giter VIP home page Giter VIP logo

Comments (11)

chriddyp avatar chriddyp commented on May 13, 2024 32

I wonder if it's an issue with the interactive debug mode. Perhaps try removing the debug=True statement there. Just run app.run_server(debug=False).

from dash.

chriddyp avatar chriddyp commented on May 13, 2024 4

but running the same code as a .py script instead of a notebook worked fine

Yeah. It seems like Jupyter notebook and the Flask debug mode don't work together. I'd recommend running it as a regular python script with debug mode for now. With debug=True, the script will automatically re-run itself when you make changes to the code; you can just refresh the browser without re-starting the script.

from dash.

chriddyp avatar chriddyp commented on May 13, 2024

Hm... I'm not sure what's going on here or why Jupyter isn't showing the error message.

from dash.

chriddyp avatar chriddyp commented on May 13, 2024

Setting debug=False seems to work for me:
image

from dash.

eloiup avatar eloiup commented on May 13, 2024

ill test it. but running the same code as a .py script instead of a notebook worked fine

from dash.

eloiup avatar eloiup commented on May 13, 2024

if i run it in a jup notebook (with debug=False) in aws, it runs, but doesnt print any outputs.

from dash.

chriddyp avatar chriddyp commented on May 13, 2024

Here's a solution from the community for running Dash in Jupyter / Ipython notebooks: https://community.plot.ly/t/can-i-run-dash-app-in-jupyter/5235/2

from dash.

legendkt100 avatar legendkt100 commented on May 13, 2024

It is not running on sypder with the same error and debug = False

from dash.

vasili111 avatar vasili111 commented on May 13, 2024

Works here in Spyder with debug = False. Does not works with debug = True.

from dash.

Subhamp7 avatar Subhamp7 commented on May 13, 2024

if( name == "main"):
app.run(debug=True, use_reloader=False)

try this works perfectly fine for Spyder

from dash.

john101h avatar john101h commented on May 13, 2024

I wonder if it's an issue with the interactive debug mode. Perhaps try removing the debug=True statement there. Just run app.run_server(debug=False).

OMG! It works. Thank u

from dash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.