Help Articles

Solve problems with Jupyter Notebooks

Jupyter Notebooks are a third-party tool that some Coursera courses use for programming assignments.

Refresh your notebook

You can revert your code or get a fresh copy of your Jupyter Notebook mid-assignment. By default, Coursera persistently stores your work within each notebook.

To keep your old work and also get a fresh copy of the initial Jupyter Notebook:

  1. Make a copy of your Notebook by clicking File, then Make a copyWe recommend using a naming convention such as “Assignment 1 - Initial” and “Assignment 1 - Copy” to keep your notebook environment organized. You can also download this file locally.
  2. Click Control Panel, then choose My Server
  3. Find the name of your previous file, as well as the new copy of your file
  4. Delete the original notebook file (not the copy) by selecting the checkbox next to the filename. Click the trashcan icon that appears to delete the file.
  5. Click Control Panel, then choose Stop My Server.
  6. Select My Server to restart.
  7. After a few minutes, launch the notebook again from your Course Home. If you get a 404 error while the notebook server restarts, wait a few minutes and try again.
  8. After the restart is complete, you will see a fresh copy.

Find missing work

If your Jupyter Notebook files have disappeared, it means  the course staff published a new version of a given notebook to fix problems or make improvements. Your work is still saved under the original name of the previous version of the notebook.

To recover missing Jupyter Notebooks:

  1. Click Control Panel, then choose My Server
  2. Find the name of your previous file

Prevent your work from being lost

Your Jupyter Notebook workspace will time out after 10 minutes of notebook activity. If the workspace times out before you save, you may lose some of your work. Be sure to save your notebooks frequently to prevent losing any work. 

You can tell if your workspace has timed out if:

  • Error messages such as "Method Not Allowed" appear in the toolbar area.
  • The last save or auto-checkpoint time shown in the title of the notebook window has not updated recently
  • Your cells are not running or computing when you press Shift + Enter

Re-start your workspace

If your workspace has timed out, you'll need to re-start it so that your work continues to be saved. To re-start a Jupyter Notebook workspace:

  1. Save your notebook locally to store your current progress
  2. In your notebook toolbar, click Kernel, then click Restart
  3. Try testing your kernel by running a print statement in one of your notebook cells. If this is successful, you can continue to save and proceed with your work.
  4. If your notebook kernel is still timed out, try closing your browser and relaunching the notebook. When the notebook reopens, you will need to do "Cell -> Run All" or "Cell -> Run All Above" to regenerate the execution state.

Download and save Jupyter Notebooks 

You can download and save your Jupyter notebooks on your computer by following the instructions here.

 


Powered by Zendesk