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:
- From the
Menu Bar
of the notebook you are working on, ClickFile → Save and Checkpoint
to first save your progress. - 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:
-
From the
Menu Bar
of the notebook you are working on, ClickFile → Save and Checkpoint
to first save your progress. -
Click on the
Lab Files
tab at the upper right corner of the screen: -
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 aFiles.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.
- Open the notebook from the classroom.
- After the notebook opens up, click
File → Open
- When 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. - 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
- (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 toRename
orDownload
each file individually in case you want to keep them before deleting. - Click on the
Help
button on the top right of the page. - Click the
Get latest version
button. - Click the
Update Lab
button. The page will refresh and you should now see the latest version of the notebook.