What is Shiny for Python?
Shiny for Python is a framework from Posit for building interactive web applications in Python. It is the Python port of the R Shiny framework and uses reactive programming, so your UI updates automatically when its underlying inputs and data change. It sits in the Data App Builders category of the App UIs & Builders tools and is open-source, written in Python and licensed MIT.
Overview
Shiny for Python is a framework from Posit for building interactive web applications in Python. It is the Python port of the R Shiny framework and uses reactive programming, so your UI updates automatically when its underlying inputs and data change. You can stand up a simple interactive visualization or a prototype quickly, then grow the same code into a larger application.
It is aimed at data scientists and Python developers who want to ship dashboards and data tools without writing separate frontend code. Unlike frameworks limited to small scripts, Shiny supports modules so you can structure and scale large, mission-critical apps.
Within the data-app builder category, Shiny sits alongside tools like Dash and Streamlit. Posit positions it around reactive programming and extensibility, with hosting options including Connect Cloud, shinyapps.io, Hugging Face, and the in-browser Shinylive runtime.
What it does
- Reactive programming model so outputs re-run automatically when inputs change
- A shiny create CLI that scaffolds a new app from a chosen template
- shiny run with --reload and --launch-browser for a live development loop
- Modules for organizing and scaling large applications
- Both Express and Core API styles for writing apps
- Multiple hosting paths: Connect Cloud, shinyapps.io, Hugging Face, and Shinylive (runs in the browser)
Getting started
Install Shiny from pip, scaffold an app with the CLI, then run it locally with live reload.
Install Shiny
Install the package from PyPI.
pip install shinyCreate your first app
Run shiny create and pick a template when the CLI prompts you. This generates an app.py to start from.
shiny createRun the app
Launch the app with live reload and open it in your browser. You can also run it from the Shiny editor extension.
shiny run app.py --reload --launch-browserCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Build an interactive dashboard to explore a dataset without writing separate frontend code
- Prototype a data tool in an afternoon and grow it into a production application
- Share a model or analysis as a hosted web app via shinyapps.io, Connect Cloud, or Hugging Face
- Ship a self-contained app that runs entirely in the browser using Shinylive
How Shiny for Python compares
Shiny for Python alongside other open-source data app builders tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Streamlit | ★ 46.6k | A Python framework that turns scripts into interactive data and ML web apps with simple widget calls and no frontend code. |
| Gradio | ★ 44.2k | A Python library for quickly building shareable web demos and UIs for machine learning models, APIs, and arbitrary functions. |
| Reflex | ★ 29.1k | A framework for building full-stack web apps entirely in Python, compiling component code to a React frontend and Python backend. |
| Dash | ★ 24.5k | A Python framework from Plotly for building analytical web dashboards and data apps with interactive charts and no JavaScript required. |
| marimo | ★ 23.8k | A reactive Python notebook stored as plain Python that can be run as a script or deployed as an interactive data app. |
| Data Formulator | ★ 17.7k | A Microsoft Research tool that combines a UI with AI to help users create rich data visualizations through natural language and direct manipulation. |
| NiceGUI | ★ 16.4k | A backend-first Python UI framework built on FastAPI and Vue for creating web interfaces, dashboards, and internal tools. |
| Shiny for Python | ★ 1.8k | Build reactive web apps and dashboards in pure Python |

