Apr 26, 2023
|
27 min
|
9.8k views
How to Deploy a Python Dash App to a Server: VS Code to Posit Connect, Step by Step
How to deploy a Python Dash application to a server, end to end: open a VS Code session in Posit Workbench, pull down a starter app, install its packages from Posit Package Manager with the versions pinned to a date, create an API key in Posit Connect, and deploy. Then set who can see it, how much compute it gets and which environment variables it needs. Posit Connect hosts Shiny, Dash, Streamlit, Quarto, R Markdown and plain APIs the same way.
What you will learn
What Posit Team is, and how Workbench, Connect and Package Manager fit together How to start a VS Code session on a server rather than on your laptop What JumpStart examples are, and how to use one as a starting point How to install Python packages from Posit Package Manager, and why pinning to a date matters How to create an API key in Posit Connect and deploy from your editor How access controls decide who can open the application How to adjust an application’s runtime settings and compute How to use tags and environment variables for credentials Chapters 0:00 What this walkthrough builds 0:53 What Posit Team is: Workbench, Connect and Package Manager 3:25 JumpStart examples in Posit Connect 4:00 Opening a VS Code session in Posit Workbench 8:03 Downloading the Dash example 9:40 Opening the example in VS Code 11:18 Installing the Python packages with pip 12:55 Where the packages come from: Posit Package Manager 15:12 Pinning package versions to a date 19:12 Creating an API key in Posit Connect 20:29 Deploying from VS Code to Posit Connect 21:36 The Dash app running on Connect 22:23 Access controls: sharing with the right people 24:10 Adjusting an application’s runtime and compute 26:35 Tags in Posit Connect 26:48 Environment variables for privileged access 27:15 Recap
Learn more Posit Connect: https://posit.co/products/enterprise/connect/ Posit Connect documentation: https://docs.posit.co/connect/ Posit Workbench: https://posit.co/products/enterprise/workbench/ Posit Package Manager: https://posit.co/products/enterprise/package-manager/
Posit Connect was previously called RStudio Connect
Quarto
rstudio
Shiny
What Is Posit Connect
Posit Connect
Rstudio Connect
Deploy Dash App
Dashboards in Python
Python Dashboard Deployment
Posit Workbench
Posit Package Manager
Vs Code Deployment
Posit Team
Enterprise Data Science
Dash Python
Posit