Skip to content

Instantly share code, notes, and snippets.

@jdegene
Created October 7, 2022 17:14
Show Gist options
  • Save jdegene/213f4bcf07b68bb4d2a02df8f019a30a to your computer and use it in GitHub Desktop.
Save jdegene/213f4bcf07b68bb4d2a02df8f019a30a to your computer and use it in GitHub Desktop.
# 5 run the darn thing
if __name__ == "__main__":
# this will run the app on your local machine: basically dash will run
# its own dev server on localhost: visit 127.0.0.1:8050 in your browser to
# see your app
app.run_server(port=8050, debug=True)
#HOWEVER, if you are deploying it later, set your host to "0.0.0.0",
# because dash will not be responsible for managing the server itself
#app.run_server(host="0.0.0.0", port=8050)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment