All teacher guides

Workspace files and resources

Organise source files, instructions, images and data, and understand imports, downloads and saved output.

On this page

Keep the files a task depends on in the Workspace, so students receive the code, instructions and data together.

Organise the Workspace files

Use the file explorer to create files and folders, open files in tabs and find a file by name. The play icon in the explorer identifies the starting file. Keep related material together: for example, HTML at the top level, images in an images folder and Python data in a data folder.

File names and paths must match the code that uses them. A file at data/scores.csv needs that path in your program; scores.csv refers to a different location.

Keep instructions available

Write the lesson brief in instructions.md. Markdown supports headings, lists and links, and students can refer to the formatted instructions alongside their work.

Use in-line tasks when instructions apply to particular lines of code. Students can navigate to each task without searching through a long brief. Add tasks in the editor explains setup and marking.

For example, a short lesson brief could be:

# Compare the scores
1. Run the starter and explain its output.
2. Add a third student to scores.csv.
3. Change the program to find the highest score.

Students can read the files you supply. Put success criteria in the brief and any model answer you want to keep private in the marking guidance.

Supply a CSV file

Create scores.csv in the same folder as main.py, containing:

name,score
Aisha,8
Ben,6

Then run this Python:

import csv

with open("scores.csv", newline="") as source:
    for row in csv.DictReader(source):
        print(row["name"], row["score"])

The output should be Aisha 8, followed by Ben 6. This example uses Python's standard library; the pandas starter is another option for table-based work.

Upload and download

In the file explorer, choose Add files or Add folder. Match the files to the library students will use, such as a CSV for pandas or a PNG for a graphics lesson.

Images keep their original size. If an image exceeds the upload limit, resize or compress a copy before uploading it.

Download the Workspace as a ZIP to retain its source files, instructions and references. ZIP export is not a one-click restore facility, and library starters may rely on browser-provided libraries that are not bundled in the download.

Files created by running code

Student runs can save generated files within the Workspace’s permissions and storage allowance. In teacher authoring, review Apply files / Discard before keeping changes made by a run. Runs in the teacher review screen are disposable: they do not replace the student's submitted files.

If a student cannot edit a file, check whether it is protected or whether the work is read-only. Do not ask them to reset their work just to investigate a file permission.

Storage limits

What you’re addingLimit
Main program100,000 characters
Additional text or source file200 KB per file
Binary file, such as an image1 MB per file
All additional files40 files and 4 MB in total
Files and folders together128 entries, up to five folder levels deep

The main file and teacher brief are excluded from the additional-file allowance. If an upload exceeds a limit, the editor identifies the file or limit to check.

Workspace languages and libraries covers runtime choices. Review student code covers feedback and returning work.