Hi,
Is there a way to open the dash app on a specific local address (instead of http://127.0.0.1:8050/ for example)? Thank you
Try to set host
kwarg in app.run()
:
# change these values
PORT = 8000
ADDRESS = 127.0.0.1
if __name__ == '__main__':
app.run(
port=PORT,
host=ADDRESS)
This worked for me:
if __name__ == '__main__':
app.run_server(port=3003)
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 Deploy Your Dash App | Dash for Python Documentation | Plotly.