Run Interactive Apps
Positron provides a simplified method for running interactive apps via the Play button. Instead of running an app from a Terminal, you can run supported apps by clicking the Play button in Editor Actions. Additionally, you can start a supported app in debug mode through the Play button context menu.
Supported app frameworks
Currently, Positron supports the following Python app frameworks:
- Dash
- FastAPI
- Flask
- Gradio
- Shiny
- Streamlit
Running an interactive app
Open the
.py
file of a supported app framework.In Editor Actions, click Play.
Then, Positron runs the app in a dedicated Terminal tab and opens the app URL in the Viewer pane.
Debugging an interactive app
Open the
.py
file of a supported app framework.Set breakpoints in the
.py
file by clicking on the editor margin.Click the Play button drop-down context menu and select Debug [{SUPPORTED_APP_TYPE}] App in Terminal.
- For this example, we select Debug Steamlit App in Terminal.
Then, Positron runs the app in a dedicated Terminal tab, opens the app URL in the Viewer pane, and starts the app in debug mode.