Skip to content

Wishlist: ability to add pure-python modules question code can import #23

@aarchiba

Description

@aarchiba

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions