Jupyter workbook and web page crashing - week3 practice lab

Hi,

I am working through week3 practice lab and have solved 3 out of the 6 problems in the practice lab. However, when I try to open the Jupyterlab workbook in the browser, the web page (and all the tabs crash). From what I can see before it crashes, I see it is trying to load a math.js library.

I found a related post here : jupyter notebook takes forever to open and then pages unresponsive - [MathJax] issue - Stack Overflow

But the solutions seem to involve restarting the kernel, which I am not sure is possible to do from the JupyterLab instance.

Has anyone faced this issue before? Any pointers as to what might be causing the browser memory to crash?

Hello @Rajesh_C,

Thanks for the details, but I have never experienced this. If restarting the kernel has a chance, then I suggest you to wait for a few hours. There should be a timeout such that the kernel will stop itself on idle, but I don’t know how long that is, so perhaps coming back after some time?

On the other hand, did it somehow print a lot of text in any cell’s output? That can also cause trouble.

Raymond

Edit:
Btw, on the top right corner, in the Help menu, there is a “Reboot” button.
image

I’ve never seen this issue in Coursera Labs.

Hi Raymond,

Thanks for your input. I did print information for debugging purposes and there is a chance that there was too much printing. But the page and notebook are now crashing before even I run the cells.

I cannot delete the current Jupyter notebook and startover and I cannot recover my past work, so hard to debug what is causing the issue.

Here are things that we can try:

Open the lab again, and see if it shows at least this part (we don’t care the code cells because they won’t load up):

image

If so,

  1. approach 1: click “File” > “Open” to go to the file browser, select the lab, and hit “Shutdown”. Then rename it (but don’t delete it).
    After it is renamed, on the top right corner, click “Help” > “Get latest version” > “Update Lab”.

  2. approach 2: click on the lab’s name, change it to something else.
    After it is renamed, on the top right corner, click “Help” > “Get latest version” > “Update Lab”.

Either approach will get you a new lab. Then you can close the lab’s tab, and reopen the lab from coursera.

If you want to copy your solutions back, here are the steps but it can take more time than just redoing the solutions.

  1. Go to the file browser again, download the old, renamed notebook.

  2. Open it with a text editor on your machine, then look for the solutions, and copy them.

Raymond

1 Like

Trying with approach 2 and starting to build the solutions again. I have a saved copy of the old lab, so I should be able to reuse the solutions. Thanks @rmwkwok !

That’s great, @Rajesh_C!

Raymond