Downloading your Notebook, Downloading your Workspace and Refreshing your Workspace

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.

  1. Coursera Labs
  2. DeepLearning.AI’s Learning Platform Labs
  3. Google Colab
  4. Vocareum / AWS Sagemaker

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

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

Coursera Jupyter Lab Environment

  1. First, make sure you have the notebook tab open. Second, click anywhere in the notebook.
  2. From the Menu Bar, click File → Save Notebook.
  3. On 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:

  1. From the Menu Bar, click File → Save and Checkpoint (or, File → Save Notebook) to first save your progress.
  2. On the top right, click Lab Files , this will open a panel.
  3. 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

  1. Open the notebook from the classroom.
  2. After the notebook opens up, click File → Open...
  3. 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.
  4. 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
  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.

Coursera Jupyter Lab Environment

  1. Open the notebook from the classroom.
  2. 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
  3. (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 to Rename or Download each file individually in case you want to keep them before deleting.
  4. Click on the Help button on the top right of the page.
  5. Click the Get latest version button.
  6. Click the Update Lab button. The page will refresh and you should now see the latest version of the notebook.


DeepLearning.AI’s Learning Platform

Downloading your Workspace

To download a complete backup of your current workspace to your local machine, please follow these steps:

  1. Click the :floppy_disk: (Save) icon located in the top-left corner of your notebook to ensure your latest changes are saved.

    Screenshot 2026-05-01 at 7.22.52 PM

  2. Check for a separate Save button on the top-left of your notebook screen. If you see it, click it. (If you do not see this button, simply proceed to the next step).

    Screenshot 2026-05-01 at 7.00.02 PM

  3. Click the + button to add a new cell to your notebook.

    Screenshot 2026-05-01 at 7.22.52 PM

  4. Copy, paste, and run the following command in the new cell to compress your workspace into a single archive:

    !tar -czvf my_files.tar.gz .
    

    Wait for the cell’s execution to finish before moving on to the next step.

  5. Option 1: Direct Download (Jupyter Lab)

    If you are working within a Jupyter Lab interface, the simplest way to retrieve your file is through the file browser.

    • Locate the Side Panel on the left-hand side of your notebook screen.
    • Find the file named my_files.tar.gz in your workspace directory.
    • Right-click on the file and select Download from the menu.

    Option 2: Scripted Download Link (Jupyter Notebook)

    If you don’t see the option to open the side panel, you are likely working in a Jupyter Notebook environment. In this case, you can generate a direct download link by running a small script inside your notebook.

    • Add a new cell, then copy, paste, and run the following code:
    import base64
    from IPython.display import HTML
    
    def download_tarball(filename):
        with open(filename, "rb") as f:
            b64 = base64.b64encode(f.read()).decode()
     
        html_str = f'<a download="{filename}"    href="data:application/gzip;base64,{b64}" target="_blank"><b>Click here to download {filename}</b></a>'
     
        return HTML(html_str)
    
    download_tarball('my_files.tar.gz')
    

    Once the code finishes executing, a clickable link will appear in the cell’s output. Simply click “Click here to download my_files.tar.gz” to save the packaged workspace to your local system.

  6. To unpack these files on your local machine, open your terminal and ensure you are in the same directory where the file was downloaded. Then, run the following command to extract the contents into a new folder named my_files :

    mkdir -p my_files && tar -xzvf my_files.tar.gz -C my_files
    

Refreshing your Workspace

This process is useful if you need to start from scratch or fetch the latest version of a notebook.

:warning: WARNING: The following steps will reset ALL files in your workspace. Any changes you have made will be permanently lost. If you want to keep a copy of your current work/files, please follow the Downloading Your Workspace instructions above before proceeding.

  1. Click the :floppy_disk: (Save) icon located in the top-left corner of your notebook.

    Screenshot 2026-05-01 at 7.22.52 PM

  2. Check for a separate Save button on the top-left of your notebook screen. If you see it, click it. (If you do not see this button, simply proceed to the next step).

    Screenshot 2026-05-01 at 7.00.02 PM

  3. Click the three vertical dots () icon in the top-right corner of your notebook screen. When the drop-down menu opens, select Restore Original Version .

    Screenshot 2026-05-01 at 7.51.26 PM

  4. A confirmation pop-up will appear on your screen. Click the Restore Original button to confirm.

  5. The page should automatically reload. If it does not, manually refresh your browser page to finalize the workspace reset.



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:

28 Likes
Downloading Notebook, Downloading your Workspace
Downloading lab files
C4W3_Assignment Assignment3 Error
Notebook error in C3W2
Can't get new file version by rebooting
Module 4 graded lab problems
M5 Graded Lab - Exercise 5
Programming Assignment: Implementing algorithms in Graphs | Final Assignment
Programming Assignment: Week 3 practice lab: logistic regression Try Again · 0/100 points earned You must earn 80/100 points to p
Issue with Lab Submission – Unable to Edit Locked Cell
Agentic AI - instructions from where / how to download ungraded lab?
Programming Assignment: Assignment 2: Modeling and Transforming Text Data for ML Grading problem
Jupter notebook download doesn't work
C3-W2 Assignment Metadata problem
Stuck in 5.2.3 - Capstone, Part1
C4W4 CapStone2: "ErrorMessage": "AnalysisException: Insufficient Lake Formation permission(s) on de_c4w4a2_silver_db (Service: AWSGlue; Status Code: 400; Error Code: AccessDeniedException; Request ID: 5064fe94-f23e-4f65-84d1-677b694925a7; Proxy: null)",
Unable to get Data in C2W2A1 DE_Exercise- Get Featured Playlists as API is outputting the error message code 404
Module 2: lab-issues
Module 2 Assignment:
Module 2 Graded Lab
Capstone Exercise 4
Programming Assignment: Analyzing Chlorophyll levels in Australian Coral Reefs
Capstone: Loan Interest Rates submission
Module 2 graded lab problem
Error on Module 2 Graded Lab for "Data I/O and Preprocessing with Python and SQL"
Programming Assignment: Analyzing Car CO₂ Emissions issues- M4
Issue with Programming Assignment: Social Network Database
Python for Data Analytics C3M2 Retail Sales Lab, deleted notebook file
Module 1 Assignment: Analyzing retail sales with Python - auto-grader not registering my answers
Capstone: NYC Restaurant Inspections - Autograder not grading assignment
Help with "Exploring Australia's coral reefs" Assignment - 'operands could not be broadcast together' Error
Issues with lab 2: module 4
Data I/O and Preprocessing with Python and SQL
Download notebook and support files
Module 3 Programming Assignment- Analyzing Movie Data with SQL
Error on C3M4
Data Analytics: Assignment Troubleshooting Tips (Coursera Labs)
Solved: Analyzing Movie Data with SQL - cannot pass programming assignment as locked cell won't complete