CmdStan in Streamlit Cloud

Hey all, I’m trying to deploy an app that uses Stan through the CmdStanPy interface.

https://probem.streamlit.app/

The repo: GitHub - srouchier/poem: Probabilistic building energy modelling

CmdStanPy requires CmdStan, which may be installed with conda or with an install_cmdstan() function built in CmdStanPy.

I’ve tried both options but none of them seem to work:

  • Simply including Cmdstan in my environment.yml file :

  • Using the install_cmdstan() function would reinstall cmdstan with every new session of the app, but returns:

    WARNING - CmdStan installation failed.

    Cannot connect to CmdStan github repo.

Has anyone already succeeded in making a CmdStan app?