Hello, I am working on the graded assignment C1W2, Exercise 2: Back Substitution.
When I run the exercise through the Jupyter interface, I get this error
NameError Traceback (most recent call last)
in
----> 1 w2_unittest.test_back_substitution(back_substitution)
NameError: name ‘w2_unittest’ is not defined
I was able to run the previous exercise test cases successfully:
All tests passed
Thanks in advance
Please try this:
Cell -> Run All Above
Then run your failing cell again.
Or you can do a more complicated version like this:
Kernel -> Restart and Clear Output
Cell -> Run All
Then page through and check the cell that failed before and see what happened.
Great! The key point there is that every time you reopen or restart the notebook, you need to run all the cells in order. The “import” cell is very early in the notebook and needs to get executed to have access to the imported functions.