TF-AT: Downloading your Notebook and Refreshing your Workspace

This course uses Coursera Labs to provide a notebook environment and to grade your work. There might be some instances where you need to download your notebooks or refresh your workspace to start from scratch. This reading item outlines the steps to do so.

Downloading your Notebook

In case you need to download your notebook for troubleshooting or running in your local environment, you can follow these steps:

Method 1 - If you want to just download the notebook you’re working on:

  1. From the Menu Bar of the notebook you are working on, Click File → Save and Checkpoint to first save your progress.
  2. Click File → Download as → Notebook (.ipynb). This should start downloading the file to your local machine.

Method 2 - If you want to download the notebook and other files available in the workspace:

  1. From the Menu Bar of the notebook you are working on, Click File → Save and Checkpoint to first save your progress.

  2. Click on the Lab Files tab at the upper right corner of the screen:

  3. A file explorer should slide from the right side of the screen. From there, you can click the Download all files button to get all available files. That will download a Files.zip file which you can extract to your local workstation.

    Alternatively, you can use the said file explorer to navigate to the files you want to download, tick the checkmark beside it, then click the Download button.

Refreshing your Workspace

This will come in handy whenever you need to start from scratch, fetch the latest version of the assignment, or run into a 404 error.

  1. O​pen the notebook from the classroom.
  2. After the notebook opens up, c​lick File → Open
  3. W​hen your workspace opens, tick the check box before your notebook file. After it is selected, press Shutdown. The icon beside the filename should turn from green to gray.
  4. Tick the checkbox again and this time choose Rename and enter any filename other than the original. For example, C4W1_Assignment.ipynb (original) → C4W1_Assignment_v2.ipynb
  5. (Optional) Tick the checkbox of any other file that you want to get a fresh copy of (e.g. dataset files that you might have manipulated irreversibly). Then click Delete . You can also opt to Rename or Download each file individually in case you want to keep them before deleting.
  6. Click on the Help button on the top right of the page.
  7. Click the Get latest version button.
  8. Click the Update Lab button. The page will refresh and you should now see the latest version of the notebook.