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

Integrate webr and Pyodide for providing data and initial values #57

Closed
WardBrian opened this issue Jun 13, 2024 · 2 comments
Closed

Integrate webr and Pyodide for providing data and initial values #57

WardBrian opened this issue Jun 13, 2024 · 2 comments
Assignees
Labels

Comments

@WardBrian
Copy link
Collaborator

See Proof of concepts in #26 and #27.

In both cases, the idea is that there would be a tab in the current location of data.json. This would load a scripting environment, and assigning to a magic variable called data will be used as the data.

For Python, we can use stanio to transform this into JSON. This handles a few of the edge cases in Stan's JSON format. Currently no direct equivalent exists in R, so we will just do our best

For initial values, we can similarly allow a magic variable called inits or initialize which should be set to a function that takes in the chain ID and returns initial values. This nicely side-steps the UI issues of how to support multiple initial values for the multiple chains.

@magland
Copy link
Collaborator

magland commented Jun 26, 2024

I'd like to rewrite #74 on the new main... but (discussing here with @jsoules) I won't use the routing for it, just a special popup. I think it will be helpful to develop and prototype these before figuring out how to plugin them into the UI.

@WardBrian
Copy link
Collaborator Author

Closed by #120 and moved the rest to #139

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

No branches or pull requests

2 participants