Replies: 1 comment 1 reply
-
If you want to avoid preprocessing there could be a (possibly empty) data structure that is passed to all PG problems. The We also discussed problems having default values if the external data is not available. I see cases where one would want to do so (e.g. if a parameter is set by the UI then use that value, otherwise generate a value), and other cases where you would want to spit an error (e.g. "using your data set from the previous question..."). |
Beta Was this translation helpful? Give feedback.
-
This has been discussed at various points and want to flesh out some ideas before starting on coding.
For a PG problem, create the ability to use external data. The following would be a possible (simplified) example:
In processing this problem there would need to be a way to detect that the data stored in
data1
(which would be stored in a database via webwork2 or webwork3) and then that data needs to be fed to the problem. Therefore some type of preprocessing would need to occur.A possibility would be to add a block like:
and if such a block exists that PG needs to request that data before processing the problem. I realize that for such problems, this would require two exchanges between webwork2 and pg to properly render the problem the first time. If the requested data is passed to the problem, then it should properly render.
Also other related ideas that have been discussed include
Beta Was this translation helpful? Give feedback.
All reactions