Render ipywidgets inside a Shiny (for Python) app.
See the Jupyter Widgets article on the Shiny for Python website for more details.
pip install shinywidgetsThe @render_* decorators for third-party widget packages (e.g.,
@render_plotly, @render_bokeh) require those packages, which aren't
installed by default. Each decorator has a matching extra that installs
everything it needs:
| Decorator | Install command |
|---|---|
@render_altair |
pip install 'shinywidgets[altair]' |
@render_bokeh |
pip install 'shinywidgets[bokeh]' |
@render_bqplot |
pip install 'shinywidgets[bqplot]' |
@render_holoviews |
pip install 'shinywidgets[holoviews]' |
@render_ipyaladin |
pip install 'shinywidgets[ipyaladin]' |
@render_ipycanvas |
pip install 'shinywidgets[ipycanvas]' |
@render_ipycytoscape |
pip install 'shinywidgets[ipycytoscape]' |
@render_ipydatagrid |
pip install 'shinywidgets[ipydatagrid]' |
@render_ipyleaflet |
pip install 'shinywidgets[ipyleaflet]' |
@render_ipysigma |
pip install 'shinywidgets[ipysigma]' |
@render_itables |
pip install 'shinywidgets[itables]' |
@render_jscatter |
pip install 'shinywidgets[jscatter]' |
@render_keplergl |
pip install 'shinywidgets[keplergl]' |
@render_leafmap |
pip install 'shinywidgets[leafmap]' |
@render_lonboard |
pip install 'shinywidgets[lonboard]' (Python < 3.15) |
@render_maplibre |
pip install 'shinywidgets[maplibre]' |
@render_matplotlib |
pip install 'shinywidgets[matplotlib]' |
@render_mosaic_widget |
pip install 'shinywidgets[mosaic_widget]' |
@render_panel |
pip install 'shinywidgets[panel]' |
@render_perspective |
pip install 'shinywidgets[perspective]' |
@render_plotly |
pip install 'shinywidgets[plotly]' |
@render_plotnine |
pip install 'shinywidgets[plotnine]' |
@render_quak |
pip install 'shinywidgets[quak]' |
If you want to do development on {shinywidgets}, run:
uv sync --all-groups
uv run pre-commit install
uv run playwright install chromium
cd js && yarn watchIf you need the older editable-install flow for tooling compatibility, this also works:
pip install -e ".[dev]"Common Python workflows:
make check
make test-playwright
make build