skillfed

shinywidgets

Render ipywidgets in Shiny applications

shinywidgets v0.8.1 175.8K downloads/30d#10,259 on PyPI54
Permissive license MIT Active released

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 shinywidgets

uv

uv add shinywidgets

poetry

poetry add shinywidgets

Installing 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

Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

ipywidgets in shinyjupyter widgets shiny pythonrender ipywidgets shinyshiny ipywidgets integrationinteractive widgets shiny app
jupyter-integrationwidget-bridge

More Application Frameworks packages