█

AI/TLDR

Buy me a coffee
Buy me a coffee

Shiny for Python

Build reactive web apps and dashboards in pure Python

Data App BuildersOpen source
Language
Python
License
MIT
$pip install shiny
IN SHORT

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.

bashbash
pip install shiny

Create your first app

Run shiny create and pick a template when the CLI prompts you. This generates an app.py to start from.

bashbash
shiny create

Run the app

Launch the app with live reload and open it in your browser. You can also run it from the Shiny editor extension.

bashbash
shiny run app.py --reload --launch-browser

Commands 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.

ToolStarsWhat it does
Streamlit★ 46.6kA Python framework that turns scripts into interactive data and ML web apps with simple widget calls and no frontend code.
Gradio★ 44.2kA Python library for quickly building shareable web demos and UIs for machine learning models, APIs, and arbitrary functions.
Reflex★ 29.1kA framework for building full-stack web apps entirely in Python, compiling component code to a React frontend and Python backend.
Dash★ 24.5kA Python framework from Plotly for building analytical web dashboards and data apps with interactive charts and no JavaScript required.
marimo★ 23.8kA reactive Python notebook stored as plain Python that can be run as a script or deployed as an interactive data app.
Data Formulator★ 17.7kA Microsoft Research tool that combines a UI with AI to help users create rich data visualizations through natural language and direct manipulation.
NiceGUI★ 16.4kA backend-first Python UI framework built on FastAPI and Vue for creating web interfaces, dashboards, and internal tools.
Shiny for Python★ 1.8kBuild reactive web apps and dashboards in pure Python