Skip to content

About

Render ipywidgets inside a PyShiny app

Resources

Stars

55 stars

Watchers

7 watching

Forks

Repository files navigation

shinywidgets

Render ipywidgets inside a Shiny (for Python) app.

See the Jupyter Widgets article on the Shiny for Python website for more details.

Installation

pip install shinywidgets

The @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_embedding_atlas pip install 'shinywidgets[embedding_atlas]' (Python 3.11+)
@render_bqplot pip install 'shinywidgets[bqplot]'
@render_drawdata pip install 'shinywidgets[drawdata]'
@render_geolibre pip install 'shinywidgets[geolibre]' (Python ≥ 3.11)
@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_ipyfilechooser pip install 'shinywidgets[ipyfilechooser]'
@render_ipyleaflet pip install 'shinywidgets[ipyleaflet]'
@render_ipysigma pip install 'shinywidgets[ipysigma]'
@render_ipyvolume pip install 'shinywidgets[ipyvolume]'
@render_itables pip install 'shinywidgets[itables]'
@render_jscatter pip install 'shinywidgets[jscatter]'
@render_k3d pip install 'shinywidgets[k3d]'
@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_mols2grid pip install 'shinywidgets[mols2grid]'
@render_nglview pip install 'shinywidgets[nglview]'
@render_mosaic_widget pip install 'shinywidgets[mosaic_widget]'
@render_niivue pip install 'shinywidgets[niivue]'
@render_obsplot pip install 'shinywidgets[obsplot]'
@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_pygwalker pip install 'shinywidgets[pygwalker]'
@render_pythreejs pip install 'shinywidgets[pythreejs]'
@render_pyvista pip install 'shinywidgets[pyvista]' (Python < 3.15)
@render_quak pip install 'shinywidgets[quak]'
@render_reactable pip install 'shinywidgets[reactable]'
@render_vizarr pip install 'shinywidgets[vizarr]'
@render_rerun pip install 'shinywidgets[rerun]' (Python >= 3.11)

Development

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 watch

If 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

About

Render ipywidgets inside a PyShiny app

Resources

Stars

55 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages