flatironinstitute / stan-playground

Run Stan models in the browser
Apache License 2.0
4 stars 1 forks source link

Optional shim code when downloading a project with scripts #179

Open WardBrian opened 1 month ago

WardBrian commented 1 month ago

I think it would be nice if, when saving a file, you got an extra check box that allowed you to add a pre-written main.py or main.R to the download.

This file would contain cmdstanpy/cmdstanr code to build the model, run it with your sampling options, and then produce objects compatible with the ones we provide in analysis.py/R

magland commented 1 month ago

That would be pretty slick. I guess when loading such a project into SP, those extra files would get ignored? If so, we should think about how to name them because we may want to use those file names for a different purpose within the UI, who knows.

WardBrian commented 1 month ago

I guess when loading such a project into SP, those extra files would get ignored? If so, we should think about how to name them because we may want to use those file names for a different purpose within the UI, who knows.

That's what I was thinking. If main is something we might want to use in the future, I think run is another solid option, and one I have a hard time imagining us wanting in the site

magland commented 1 month ago

run sounds good to me