This is the final chapter of the essential Dash Fundamentals.
The previous chapter covered how to
share state between callbacks.
Now that you’ve got a handle on the basics, it’s time to put your app into the hands of decision makers!
By default, Dash apps run on localhost
, meaning that you can only access them on your
own computer. To share a Dash app, you need to publish—or deploy—it to a server.
Plotly provides two platforms whose servers you can use to publish your app: Plotly Cloud and Dash Enterprise.
Plotly Cloud is managed by Plotly, whereas Dash Enterprise is a platform that your organization needs to install and manage.
Publishing to Plotly Cloud is faster, and you can get started for free.
<img>
To publish your app to Plotly Cloud:
Create an account if you don’t have one already: https://cloud.plotly.com/
Prepare your app folder to meet the Plotly Cloud publishing requirements:
Make sure that your folder contains your Dash app code in a file named app.py
.
In your app.py
file, add a line server = app.server
.
List your app dependencies in a requirements.txt
file.
Make sure that the total size of your files is under 80 MiB.
In Plotly Cloud, upload your app.py
, requirements.txt
, and any other files that your app uses.
Optionally customize the app name and URL, set the Python version, or add environment variables.
Select Save & publish, then sit back as Plotly Cloud publishes your app!
Your app becomes available at the URL you have set, and you can configure who can view it:
<img>
Dash Enterprise
is Plotly’s premier product for developing and deploying
Dash apps. It provides a complete analytical app stack, including:
- LDAP and SAML authentication middleware
- Data app Workspaces
- Job queue support
- Enterprise-wide Dash app Portal
- Design Kit
- Reporting, alerting, saved views, and PDF reports
- Embedding Dash apps in existing websites or Salesforce
- AI App Catalog
- Big Data best practices
Dash Enterprise can be installed on the cloud services of AWS, Azure, or Google.
Learn more about Dash Enterprise or get in touch.
If your organization has already licensed and installed Dash Enterprise, you can head to the Dash Enterprise guide to get started.
For detailed requirements to deploy your app to Dash Enterprise, see Preparing Your App for Dash Enterprise.