See the Shiny for Python website.
To install the latest release from PyPI:
pip install shiny
To install the latest development version from this repository:
pip install https://github.com/rstudio/py-shiny/tarball/main
If you want to do development on Shiny for Python:
pip install -r requirements-dev.txt
Additionally, you can install pre-commit hooks which will automatically reformat and lint the code when you make a commit:
pre-commit install
# To disable:
# pre-commit uninstall