Shiny for Python¶
Tier 1 — covered by CI, releases block on regressions.
Install¶
pip install 'pymyio[shiny]'- Pulls in
shinywidgets >= 0.8.0andshiny >= 1.0.
Minimal example¶
from shiny import App, ui
from pymyio.shiny import render_myio, output_myio, reactive_brush
from pymyio import MyIO
# ... (point at example_app() for the full pattern)
Reference¶
- Use
pymyio.shiny.example_app()for a copy-pasteable runnable app.
Known gotcha¶
- Importing
shinywidgetsanywhere in the process installs a global widget-construction callback. pymyiodoes NOT transitively importshinywidgets.- Users must explicitly
from pymyio.shiny import ...to opt in. - This protects vanilla Jupyter users who happen to have
shinywidgetsinstalled.