ucbds-infra / otter-grader

A Python and R autograding solution
https://otter-grader.readthedocs.io
BSD 3-Clause "New" or "Revised" License
126 stars 66 forks source link

Auto-installation of otter-grader in Colab-generated notebooks #861

Closed vladtkachuk4 closed 1 month ago

vladtkachuk4 commented 1 month ago

Problem: When generating a Colab notebook using Otter-Grader, I noticed that I have to manually add the line %pip install -q otter-grader as the first code cell to ensure that otter-grader is installed in the Colab environment. I expected that the runs_on: colab setting in the Assignment Config would automatically add this cell to the student notebook, but this doesn’t happen.

Proposed Solution: It would be helpful if, when using the runs_on: colab option in the Assignment Config, Otter-Grader could automatically insert the %pip install -q otter-grader cell at the top of the generated notebook.