Dash first example on dash website fails

I’m trying to get started with Dash

I’ve installed for jupyter notebooks as in Part 1. Installation | Dash for Python Documentation | Plotly no errors, all OK

Then, as in Part 2. Layout | Dash for Python Documentation | Plotly I’ve copied app.py into jupyter notebooks

Tried to run it, I get:

Dash is running on http://127.0.0.1:8050/

 * Serving Flask app "__main__" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on

An exception has occurred, use %tb to see the full traceback.

SystemExit: 1

and from the Anaconda server:

D:\anaconda3\lib\site-packages\IPython\core\interactiveshell.py:3426: UserWarning:

To exit: use 'exit', 'quit', or Ctrl-D.

given the aovenot surprisingly:

at http://127.0.0.1:8050/ I get 'Unable to connect'

I know my Internet connection is working - I can access other external URLs.

Rather disappointing to fail at first fence - can anyone advise please?

Gordon Dennis

You can not use debug=True with Jupyter Notebook. Change to False or else run the code from a code editor/IDE.

1 Like