Skip to content

Variables in the grading environment are not visible from the grading algorithm (pyodide) #63

@joelostblom

Description

@joelostblom

I would like to create a common setup cell for several exercises. It seems like setup: does not accept an array of exercise names currently. Maybe a code chunk with setup: but without an exercise name specified (or specified as *) could propagate the setup code to all exercise environments?

A workaround I have found is to specify envir: 'global' in the exercise cell. I was initially planning to use this together with a hidden setup cell, but I'm having issues with echo to hide the cell as per #62. If this is a good solution, maybe it can be added to the docs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions