Help Articles

Solve problems with Jupyter Notebooks

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

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, click File, then Make a copy.

We recommend keeping a naming convention such as “Assignment 1 - Initial” or “Copy” to keep your notebook environment organized. You can also download this file locally.

Refresh your notebook

  1. Rename your existing Jupyter Notebook within the individual notebook view
  2. In the notebook view, add “?forceRefresh=true” to the end of your notebook URL
  3. Reload the screen
  4. You will be directed to your home Learner Workspace where you’ll see both old and new Notebook files.
  5. Your Notebook lesson item will now launch to the fresh notebook.

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 your work:

  1. Find your current notebook version by checking the top of the notebook window for the title
  2. In your Notebook view, click the Coursera logo
  3. Find and click the name of your previous file

Unsaved work

"Kernels" are the execution engines behind the Jupyter Notebook UI. As kernels time out after 90 minutes of notebook activity, be sure to save your notebooks frequently to prevent losing any work. If the kernel times out before the save, you may lose the work in your current session.

How to tell if your kernel has timed out:

  • 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 “Shift + Enter”

To restart your kernel:

  1. Save your notebook locally to store your current progress
  2. In the notebook toolbar, click Kernel, then 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