Putting this here for future reference: https://github.com/posit-dev/py-shiny/pull/904#discussion_r1434385542