Jupyter labs not running

What browser are you using?

I can’t think of any situation in which downgrading the browser would have any impact on a Jupyter notebook.

Firefox and Chromium. Prefer using Firefox.

And no, there is not a smattering of plugins loaded.

All labs are now running.

Thankyou for your help, it was more than what Coursera offered.

James.

3 Likes

i am in the same boat. very frustrating.

1 Like

@Julia_A, what boat are you in specifically?
Can you provide some screen capture images of the situation?

Hello TMosh, and thank you so much for taking time volunteering on this forum.

Attached is an error I receive when working on my lab assigtnment. I guess my question to you is more general: how are we supposed to submit this assignment? Do I just hit Run for each module? Or are we required to install software locally and submit a working Python file or code? Would you be able to share a template on what the deliverable is supposed to look like please?

The error I receive is attached.

Again, any insight is much appreciated. My local installation is showing an error that says: “import numpy as np ModuleNotFoundError: No module named ‘numpy’”.

Kind Regards,
Julia

1 Like

Your image doesn’t include the error that you are discussing.

I don’t see any “Module not found” error in your image.

What I see in the image is that you have “In[1]” next to the cell that has the “load our data set” comment.

To me this says you did not run the first cell in the notebook - that’s the one that imports numpy. If you had run that cell and gotten an error, it would have been displayed immediately above the “Problem Statement” text.

Please post a screen capture image that shows the entire situation.

3 Likes

Hey Julia, only graded labs will request to submit your lab, for that a blue button with the label “Submit Assignment” will be displayed on top of the lab.

Regarding the error, Tmosh is right, The number ‘1’ → In[1] that means the cell where the numpy is imported as ‘np’ wasn’t run thats why you have the error np not defined. In order to fix just run the dev cell above with the imports

Regarding your local installation, you need to install numpy in your machine in order to python import it, right now python cant find it. You can find the instructions here to Installing Numpy

4 Likes

This isn’t an assignment you can submit. It’s just an example lab.
There is no code you modify in this notebook.

1 Like

I strongly recommend you do not run the labs on your local machine, or on any other platforms.

If you do that with any of the graded assigments, you will very likely end up
modifying the notebook metadata in a way that makes the grader very unhappy.

Also, the labs are designed to run with a specific environment of package versions. If you run the notebooks locally, you will likely have errors based on using newer package versions that are not compatible with the notebook.

2 Likes

Hey Noonien, in the image you attached the cell code shows In[1] this means this is the first you are running and from this lab should be at least the 11th cell step to run. you are skipping 10 steps of code in order to run this step thats why is failing. One of those steps is to import the library matplotlip.pyplot as plt. this is the first step you should run. you have to do the lab step by step this is how it should look like.

As you can see this cell code should be run before the one you are doing. Follow each code step of the lab to avoid errors.

1 Like

I very much appreciate your feedback, but I am still very confused on this assignment. My question boils down to this:

What is the deliverable in this lab? How do I get a passing grade?..

When I submit the lab without any modifications it says I did not pass… What am I doing wrong? I am very very lost… Thank you again!!!

First Programming Asignment Coursera.pdf (306.8 KB)

1 Like

In other courses I had taken on Coursera, we would have instructions on what professor would like to see as a homework output. I am very lost as to what we are supposed to do here to get a grade. If not run locally - how do we make this code work?.. thank you!!!

1 Like

For the lab that you posted an image of two hours ago, there is no deliverable for that lab. It’s just a demonstration.

Sorry, for security reasons, I cannot open the PDF file you posted. Please post a screen capture image that shows the notebook title.

You make the code work by running it in the Coursera Labs environment in your browser.

For the graded assignments (which are also confusingly called “labs”), the instructions in the notebook will tell you which parts of the notebook you need to complete. Usually what you do is replaced the “None” statements with the correct code to complete that function.

Hi there,

Just to wrap up my problem, even thought I started at the top and hit RUN for each module, the datatype for each module was not always correct.

I mentioned this early on - it was choosing MARKDOWN or CODE incorrectly.
Why? No idea - this was on two computers.
Downgrading the browser somehow fixed this.

I won’t mark this solved as other people have also asked questions.
But thankyou TMosh and Riccardov and others.

1 Like

I don’t know what to say besides, in several years of mentoring these courses, no one else has ever reported this issue.

1 Like