for exercise six, the error is saying “name ‘np’ is not defined” and marks it where x is defined by the test
here is my code:
{moderator edit - solution code removed}
Make sure at the top, on the imports (including also import numpy as np line) cell is run!
Every time you open a notebook, you must run all of the cells starting from the top (where all of the imports are performed).
Gent and Tom have answered the specific question, but it’s also worth mentioning that this is one of a list of questions covered on the DLS FAQ Thread. If you’re just getting rolling here, that is worth a look just to see what is on the list. Not all of it may be relevant now, but could come in handy later.
Also note that there was a lecture called “A Quick Introduction to the Jupyter Notebooks” and a reading item called the Programming FAQ. This point about how the “state” of the notebooks work was covered there. If you skipped those to save time, perhaps it was not a net savings of time.
I have a very selective memory. I read them all.
Well, to be fair, there are some things that you can read, but the significance probably won’t register until you’ve actually had some experience with the system in question (the notebooks). You have to really use the notebooks before you have the context to make sense of much of what they’re saying. Onward!
Yes, exactly! Thanks Paul, Gent, and Tom.