Skip to content

Trouble autograding submissions #858

Closed Answered by chrispyles
nihaar-c asked this question in Q&A
Discussion options

You must be logged in to vote

Otter should work fine with shell commands (assuming you're using a recent version) so I'm not sure what could be causing this. You can see what error is occurring in the notebook by following these debugging instructions. Then, after you run ./run_autograder in the container, from outside the container run docker cp <container ID>:/autograder/results/results.pkl ./results.pkl then run the following python script to extract the notebook:

import nbformat
import dill

with open("results.pkl", "rb") as f:
    res = dill.load(f)

nbformat.write(res.notebook, "executed.ipynb")

Open the notebook and find the cell with the shell command, and the error should be in its output.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chrispyles
Comment options

Answer selected by nihaar-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants