Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support latest PyStan3 and CmdStanPy #4

Open
defjaf opened this issue May 29, 2021 · 0 comments
Open

Support latest PyStan3 and CmdStanPy #4

defjaf opened this issue May 29, 2021 · 0 comments

Comments

@defjaf
Copy link

defjaf commented May 29, 2021

The latest version of PyStan uses a somewhat different syntax and overall model than previous and so stanmagic doesn't work with it directly, and because of the new model -- which requires data at compilation time -- it needs more than just a simple change of names. This is sufficiently non-obvious that I've posted a Pystan3 feature request to change this behaviour.

Also I understand that CmdStanPy is becoming a popular way to do much the same thing with a python front-end, albeit with a file-based interface to stan (but I haven't used it).

One simple fix might be to just allow the magic to create a string or file with no attempt at compilation (but with syntax highlighting!)

(I tried to post a something similar in the jupyterstan repo but issues are disabled there…)

(Apologies for the lack of links in the above; the original, prettier, version of this issue was unceremoniously deleted by a github iOS bug, and I don't have the strength to replace them all right now...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant