Error on grading Week 1 assignment

Assignment for Week 1 in the Probability and Statistics course: Grading error.

All the tests pass and I have revied the code dozens of times and still got:

The function is absolutely defined:

Can anyone help me?

1 Like

Are you sure that you didn’t accidentally change that cell to be markdown instead of code?

Try doing this sequence:

Kernel -> Restart and Clear Output
Save
Cell -> Run All

Then carefully scan through the notebook and make sure everything ran successfully.

2 Likes

Often this sort of problem happens if you work on the notebook outside of Coursera Labs, and the metadata for a cell gets mangled such that the grader is not told to import that cell.

Is this possibly your situation?

1 Like

Thanks for your advice.

Still doesn’t work. The cell is code and I did the sequence.

1 Like

No, it’s not my situation, I worked everything inside the coursera website (jupyter).

Thanks a lot for your help.

1 Like

Summary for those who find this thread later:

There appeared to be several internal issues with the student’s copy of the notebook. Ultimately the student downloaded a fresh copy of the notebook and completed the assignment successfully.

1 Like