Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Open dash app on specified address

Is there a way to open the dash app on a specific local address (instead of for example)? Thank you

Try to set host kwarg in

# change these values
PORT = 8000

if __name__ == '__main__':

This worked for me:

if __name__ == '__main__':

Incrementing the port value lets one compare code iterations.

Thank you! Do you know if there is also a way to save the app as a local file (HTML for example) on my computer?

This isn’t possible - Dash requires applications to be served from a Python server (so that the callbacks can be fired).

For more information about addresses, ports, and sharing dash apps, see