We are developing tools for automatically grading plots. Doing this well requires some substantial code, which we currently need to paste into every question part. Much of this code is the same from part to part and question to question. If it were possible to make available a python module, say plot_grader.py, so that code inside pyodide could import plot_grader, that would be a real help.
If #22 were implemented, uploading the module as a question resource would be a nice solution. Pyodide supports loading packages from a file system, or some other ways of supplying packages of Python code: https://pyodide.org/en/stable/usage/loading-custom-python-code.html
We are developing tools for automatically grading plots. Doing this well requires some substantial code, which we currently need to paste into every question part. Much of this code is the same from part to part and question to question. If it were possible to make available a python module, say
plot_grader.py, so that code inside pyodide couldimport plot_grader, that would be a real help.If #22 were implemented, uploading the module as a question resource would be a nice solution. Pyodide supports loading packages from a file system, or some other ways of supplying packages of Python code: https://pyodide.org/en/stable/usage/loading-custom-python-code.html