- I’ve been trying to submit the assignment for week 2, assginment 1, but i keep getting the error that some line of code is not found.
- Also the assigment involves initializing with random values but I think I may have change the seed value.
- How do I start the notebook from scratch / get it to the state it was before I wrote any line of code.
The best way to get help with an error is to actually show us the error you are getting, either by doing a “copy/paste” of the exception trace or as a screenshot. Also it is important to realize that the no-one else can directly look at your notebooks or your grades.
If you want to restore a notebook to its initial state, here are the instructions:
- Open your current notebook.
- Go to “File->Rename”, and rename the notebook.
- Go to the Lab Help menu (the question-mark inside a circle in the upper right corner of the window), and select “Get latest version”.
That will give you a clean copy of the notebook. You can then click “File->Open” and open the saved (renamed) copy of the notebook, if you want to “copy/paste” over any of your previous code.
Note: Do not rename the new notebook. The grader always grades the notebook with the original file name, meaning that one opened by the “Launch Lab” link.
this is the issue, I believe I may be using a different seed value or I may have changed something I am not supposed to touch.
Well, you can confirm or deny that theory by getting a clean notebook and then “copy/pasting” over just your code from the “YOUR CODE HERE” sections. If that succeeds, then your theory was correct. If that still fails, then there is some other problem with your actual code.
Please try this experiment and let us know what happens.
And if it still fails, then please actually show us the error output you are getting either from the grader or from the test cases in the notebook.
@ishola_faazele Paul gave me some good advice once and that relates to when you start an assignment, before coding anything, save a blank copy to your local device.
This is a slightly easier way to check against mistakes, instead of restarting everything.
Also, in my experience, usually if you have only made a mistake in the last block or two, you can hit ‘Ctrl-Z’ (aka ‘undo’) as many times as needed to go back a little.
I started a new notebook, and copied the code into it. everything works now. Thank you. Glad to see that there’s a community of selfless individuals willing to help. I have been facing this issue since June 28. Thanks again.
That’s great news that you got it to work just by starting with the clean copy.
I hope this experience will reinforce that next time, there’s no need to suffer for months before asking for support! We can’t guarantee to always be able to help, but the community really does have pretty deep experience supporting these courses.