shinywidgets
Render ipywidgets in Shiny applications
What it is and what it does
shinywidgets is a bridge library that lets you use Jupyter interactive widgets (ipywidgets) inside Shiny for Python applications. It takes the rich widget ecosystem from Jupyter—sliders, dropdowns, plots, and custom widgets—and renders them natively within a Shiny app's UI. The package depends on shiny, ipywidgets, anywidget, jupyter-core, and python-dateutil to coordinate between the two frameworks.
The library is actively maintained but remains in pre-alpha, meaning the API may change and feature coverage is still evolving. It's useful when you want to reuse existing ipywidget code or leverage the Jupyter widget ecosystem without rewriting components for Shiny's native widget set. Installation is straightforward via pip with no compiled dependencies.
Use it for:
- Reuse existing Jupyter notebook widgets in a Shiny web application without rewriting them.
- Combine Shiny's app framework with specialized ipywidgets (e.g., scientific plotting or data exploration tools).
- Prototype interactive dashboards by mixing Shiny layouts with ipywidget components.
- Migrate interactive Jupyter notebooks to production Shiny apps while keeping familiar widget code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Embeds ipywidgets (Jupyter interactive widgets) directly into Shiny for Python applications, bridging the two widget ecosystems.
Yes, if you need to use ipywidgets in a Shiny app or want to bridge Jupyter and Shiny codebases. The low install friction, active maintenance, and permissive license make it a straightforward choice. Be aware it's pre-alpha, so expect potential API changes and test thoroughly before relying on it in production.
Install
shinywidgets on PyPI
pip
pip install shinywidgetsuv
uv add shinywidgetspoetry
poetry add shinywidgetsInstalling shinywidgets
Before you install
Low friction install with a pure-Python wheel. Active maintenance as of May 2026, though the package remains in pre-alpha status (Development Status :: 2), so expect API changes and incomplete feature coverage.
License in practice
MIT license is permissive—you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install shinywidgets
from shinywidgets import render_ipywidget
from ipywidgets import IntSlider
from shiny import App, ui
app = App(
ui.page_fluid(
render_ipywidget(IntSlider(value=5, min=0, max=10))
),
None
)
if __name__ == "__main__":
app.run()
Requires Python 3.10 or later; depends on shiny, ipywidgets, anywidget, jupyter-core, and python-dateutil to be installed.
Verify before relying
- Whether all ipywidgets are fully supported or only a subset works reliably in Shiny context.
- Performance characteristics when rendering many or complex ipywidgets simultaneously.
- Stability guarantees given the pre-alpha development status and potential for breaking changes.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — anywidget, ipywidgets, jupyter-core, python-dateutil, shiny |
| Maintenance | actively maintained — 100 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 175,771/month — #10,259 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: shinywidgets-0.8.1-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
jupyterlab-widgetsEnables Jupyter/IPython widgets to render and…
permissive · top 1,000 on PyPI
shinyShiny for Python is a web development framework…
permissive · top 15,000 on PyPI
shinychatshinychat provides a chat UI component for…
permissive · top 15,000 on PyPI
ipyvueProvides a Jupyter widget base for building…
permissive · top 15,000 on PyPI
ipywidgetsipywidgets provides interactive HTML widgets…
permissive · top 1,000 on PyPI
ipydatawidgetsipydatawidgets provides Jupyter widgets for…
permissive · top 15,000 on PyPI
ipytreeipytree provides a tree-structure widget for…
permissive · top 15,000 on PyPI
reactonReacton provides a React-like component model…
permissive · top 15,000 on PyPI
ipyvuetifyProvides Jupyter notebook widgets built on…
permissive · top 15,000 on PyPI
shinyswatchProvides 25 Bootswatch + Bootstrap 5 themes for…
permissive · top 15,000 on PyPI