Integrate webr
and Pyodide for providing data and initial values
#57
Labels
webr
and Pyodide for providing data and initial values
#57
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 calleddata
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 bestFor initial values, we can similarly allow a magic variable called
inits
orinitialize
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.The text was updated successfully, but these errors were encountered: