There might be some instances where you want to download your notebooks or workspace, or refresh your workspace to start from scratch. This topic contains instructions for managing your lab notebooks. Some courses host them on different platforms, so please select the one applicable to the lab you’re working on.
Coursera Labs
Our courses on Coursera either use a Jupyter Noteebok
environment, which looks like this:
Or, they use a Jupyter Lab
environment, which looks like this (there’s a panel on the left side):
Note: Please make sure you know which environment is being used in the course you are taking, as the instructions below would vary.
Downloading your Notebook
In case you need to download your notebook for troubleshooting or running in your local environment, you can follow these simple steps:
Coursera Jupyter Notebook Environment
- From the Menu Bar of the notebook you are working on, click
File → Save and Checkpoint
(orFile → Save Notebook
) to first save your progress. - Click
File → Download as → Notebook (.ipynb)
(orFile → Download
). This should start downloading the file into your local machine.
Coursera Jupyter Lab Environment
- First, make sure you have the notebook tab open. Second, click anywhere in the notebook.
- From the Menu Bar, click
File → Save Notebook
. - In the left hand panel, right click on the notebook file you want to download, select
Download
. This should start downloading the file into your local machine.
Downloading your Workspace
In case you need to download your entire workspace or some files for troubleshooting, or running in your local environment, you can follow these simple steps:
- From the Menu Bar, click
File → Save and Checkpoint
(or,File → Save Notebook
) to first save your progress. - On the top right, click
Lab Files
, this will open a panel. - Now, you can either download the entire workspace by clicking
Download all files
or you can select the files you want to download.
Note: The best way to download the supporting files for the notebook(s) is the Downloading your Workspace
option.
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.
Coursera Jupyter Notebook Environment
- 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,C1_W1_Assignment.ipynb
(original) →C1_W1_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.
Coursera Jupyter Lab Environment
- Open the notebook from the classroom.
- Once your workspace opens, in the left hand panel, right click on the notebook file and select
Rename
. Enter any filename other than the original. For example,C1_W1_Assignment.ipynb
(original) →C1_W1_Assignment_v2.ipynb
- (Optional) For any other file that you want to get a fresh copy of (e.g. dataset files that you might have manipulated irreversibly), right click on it and select
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.
Google Colab
Downloading your Notebook
If clicking the assignment link goes to a URL starting with https://colab.research.google.com
, you can download your notebook by simply clicking File → Download → Download.ipynb
.
Vocareum / AWS Sagemaker
Downloading your Notebook
You can either right-click on the file in the File Explorer, or click File
in the Menu Bar. Both should have a Download
option:
-
Method 1: Right-click the filename in the File Explorer:
-
Method 2: Use the
File
menu: