Closed riddell-stan closed 3 years ago
This should address the problem in stan-dev/pystan#247
re: "python script with basic import + model compilation + sampling" Are you thinking this would be useful documentation for people who aren't familiar with how REST APIs work?
I think the README example with curl
is reasonably complete.
Of course, if you see any specific weaknesses in the documentation, feel free to open an issue.
Just for having a "test" (outside pytest) that works. Maybe pystan is a better place for it?
We have such a test in GitHub Actions: https://github.com/stan-dev/httpstan/blob/a1df6f3cf849431a015e20c218fca03494568e36/.github/workflows/main.yml#L48
Require multiprocessing to use the "fork" method for starting new processes. This is the only version httpstan currently works with. (macOS recently switched to "spawn" as the default.)
This follows the recommendation in the Python
multiprocessing
documentation: