Dash Shows Multiple Lines that Dash is Running on Localhost

Hi, Everyone!

Anyone experience having multiple lines that Dash is running on localhost?

image

Dash version:
image

Just an update.

In my other app, it has more lines.

image

Hi Pam,

I was experiencing the same problem.
With me it had to do with the logger:

import logging
logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)

Each time I would close the app and re-run it, a new line “Dash is running on …” would be displayed.
It has something to do with the handles that keep being added to the logging (see function callHandlers in logging.py which is called by app.run_server())

I’m sure there is a better solution, but reloading the logger on startup solved the problem for me:

from importlib import reload
import logging
reload(logging)
logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)

Best,
Nicole

p.s.
I found a GIThub issue about this:
Dash object adds handler to logger creating extra handler · Issue #756 · plotly/dash · GitHub