Thank you, that is quite helpful. I'll explore your solutions.
But one issue comes to mind immediately: isn't it true that running streamlit in a subprocess means that the app will no longer benefit from uv's features, particularly rapid installation of dependencies? Or should the subprocess call something like uvx streamlit run foobarbaz/__main__.py? Will that honor all requirements listed in pyproject.toml?