Name 'callbacks' is not defined

Hi all, this error is probably being caused because we updated the graders recently to allow the use of global scope.

Could you try getting the latest version of the assignment? To do this you can click the Help button on the upper right corner of the screen and click on “Get Latest Version” and on this new version (which should be blank) copy and paste your solution, check that everything is running correctly, save your notebook and submit for grading.

Hi @paragon, thanks for reaching out, I successfully received your code, When I copied your graded functions into my notebook I got 100/100, But when I replaced the entire notebook with yours I faced the same error and got only 50/100.

@a-zarta, unfortunately, the “Get latest version” option is not working properly for some reason, as it is not getting a blank version “The graded functions are not reset to defaults and the changes made by the user remain”

Here is a blank version, download it and follow these instructions:
C1W2_Assignment.ipynb (8.1 KB)

Step 1:

Step2:

Step 3: Select the attached notebook, then click upload.

Step 4:

Step 5: enter the new notebook and paste your solution into the graded functions (DO NOT CHANGE ANYTHING ELSE).

Please try this and tell me if it worked well.

I passed! Thank you so much!! @m.abidat !

And thank you to everyone in the community who helped me with various suggestions along the way. The support in this community is genuinely appreciated and encourages me to finish through.

I will refrain from erasing the comments in the assignments from now on, as to not trigger another technical error.

2 Likes

@m.abidat thanks for letting me know, I was able to reproduce the bug and will inform coursera so they can fix it asap.

In the meantime, this workaround works:

  • Click in the jupyter logo in the upper left corner of the screen. This will take you to the jupyter filesystem.
  • Here, download your notebook so you don’t lose any progress.
  • After downloading the nb, delete it.
  • Then click on Help and Get Latest Version
  • Copy and paste your code into this blank assingment and save it before submitting.
3 Likes

I just got confirmation that this is not a bug and it is the intended behavior so if more learners face this issue they should perform the steps in the post above.

3 Likes

Hi everyone! Thank you for the resolution! The instructions to refresh your workspace can now be found here for Course 1. A copy of this reading item was already published in C3 and C4 before but turns out it wasn’t placed yet in C1. Thank you for pointing it out! You can refer other learners to that link if needed. C2 will not need this because the assignments there are done in Colab.

1 Like