See the Shiny for Python website.
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