Programming Assignment: Optimization Methods

I had this issue while running some of the cells training the neural networks where it was supposed to just print the performance of the models and plot the cost, but instead it printed a whole bunch of meaningless data which made the Lab run really slowly. This happened for several of the cells at random until finally it crashed, and now when I try to open the Lab, nothing shows up in the notebook (it appears to just be completely empty) or it will just freeze. Please help…

Update: I’ve noticed that when I open the Lab and try some things to make the notebook appear, it will also affect the Coursera course page which freezes in another window.

Please try getting a fresh copy of your assignment. If this doesn’t work, share a screenshot with us.

Didn’t work, unfortunately. Here is what I see when I click “Launch lab” from the course page:

After a short while the screen turns completely blank.

You mean after getting a fresh copy, you still face this issue? If so, @lucas.coutinho, @chris.favila, could you please guide him further?

Meanwhile, please try logout and then login, Incognito Window, different browser, or a different device.

Yes.

I just noticed this in the bottom left corner. Don’t know if it’s relevant to the issue:

I am unable to try a different device, but all the other methods were to no avail.

1 Like

Please wait for Lucas or Chris to respond.

1 Like

Hi! The lab is working fine on my end. If the problem persists, can you direct message me your lab ID? You can click the question mark icon at the top right. Lab ID is at the bottom. You can click my name then the blue Message button to send a DM. Thanks!

1 Like

Hello @Terneborn,

Please follow Chris’s instructions.

What I want to share is that, because I saw the following screenshot of yours, next time, try if you could click “File > Open” to open the file browser. If so, you should be able to shut down the notebook there, rename the notebook, then you should be able to get a fresh copy as suggested by Saif here. The renamed notebook will still be there, so it’s still possible to extract any important data, only you might have to open it with other means e.g. Notepad or possibly JupyterLab.

This is really a common issue with Jupyter Notebook that when any cell’s output is too large.

Cheers,
Raymond

3 Likes

Update: Resolved this through the direct message yesterday. The problem is the notebook ballooned to 276MB that’s why it’s not opening. Refreshing the workspace worked to generate a new blank notebook to rework the solutions. We’ll see if the problem with the previous attempt is due to the assignment itself or just a one-off case. Thanks.

3 Likes

Often this can happen (for example) if debug print() statements are added inside a training loop. The debug output can make the notebook grow so large that it can’t even be loaded in order to delete the print()'s.

3 Likes