Jupyter Notebook has someone else's work in it

I noticed this in the practice assignments also - it seems that i have somehow inherited the Jupyter notebook from a previous student - it has the assignment coded already, and the notebook says it was last saved in April, but I just started taking the course. I am confident I didn’t do the course in a past life! Anyone know what could cause this and how to resolve?

What is the file name of the notebook?

The practice assignments are just examples to show you how things work, so in several cases they are already completed. The “assignment” in that case is just to read through and run the code and understand what it is doing and how the numpy code is implementing the math that was explained in the lectures.

But I am also experiencing it in the actual assignment, Gaussian Elimination, at the end of week 2

Let’s start by getting a clean copy and then go from there. Here’s the procedure. Please note that it will not replace existing files. That means that you must first rename your existing notebook or else nothing happens.

If you still see completed work, then I’d like to see your notebook. We can’t do that on this public thread, but I will send you a DM about how to do that.

Also note that they just give you the solutions to all the functions in the “Auxiliary Functions” section. There are only three graded functions where you need to write some code. And even there, they give you most of the code in the form of a template. You just need to fill in a few critical chunks of code.

So they are doing pretty heavy duty “hand-holding” here to try to help people with limited python experience.

Right but there is code in between the “insert your code here” comments, which jibes with the fact that it was saved back in April. I am working on following your instructions and will send it shortly.

1 Like

All is well - user error. I was confused by the fact that there was code after the “START CODE HERE” comment, which is expected because we are only meant to modify the template, in combination that I had actually gotten someone else’s notebook in the earlier ungraded labs (they started with numbers in the brackets eg “In [2]”) which is actually expected behavior. Thanks paulinpaloalto for explaining.

1 Like