5. Labs Management & Activities
Where: sidebar → Course Content → Labs
(/courseware/course/{courseId}/content/labs)
A lab is a container with a schedule. Inside it sit activities: the things students actually do:
Activity type |
What it is |
|---|---|
Programming Activity |
Write code, run against testcases, auto-graded |
Quiz Activity |
Questions, file uploads, subjective answers. Students see this as “lab quiz” |
5.1 The Labs Dashboard
Counters across the top (All Labs / Visible / Hidden) and matching tabs. The bar below gives you a search box, Reorder (on the All Labs tab only, and only once you have two labs), a New ▾ dropdown holding New Lab and Import Programming Lab, and two icon buttons: Export Labs and Recycle Bin.
Each row shows the lab’s Title, Status (visible or hidden), Type, Timeline (start and end), Submissions count, and Actions icons.
Your search, sort, filter, and page-size choices are remembered per course for the browser session — they reset when you close the tab.
Bulk Show & Hide Operations
Tick the checkbox next to one or more labs. A bulk bar appears at the bottom of the screen: Show makes every selected lab visible to students, Hide hides them all.

5.2 Creating a New Lab
New ▾ → New Lab opens the Create Lab dialog:

Title: required
Instructions: click to edit, rich text
You then set:
Field |
Notes |
|---|---|
Available From / Available Till |
From must be before Till |
Submission Grace Period |
Default |
Leave the grace period alone unless you have a reason. It exists so a student who hits submit on the deadline is not failed by network lag.
Preview as Student in the dialog header shows the student’s view before you save. Click Submit to create the lab.
New labs are created hidden. Make the lab visible when you are ready for students to see it.
5.3 Programming Activities & Autograding
From a lab, Create Activity ▾ → Programming Activity.
Students write code in an in-browser editor, run it, and submit. BodhiTree runs each submission in a sandbox and checks its output against your testcases.

Basic Details & Setup
Preview as Student in the top bar shows the problem and editor as a student sees them.
Title (required) and Description: the problem statement, with expected input, output, and constraints
Files to be submitted (required): comma-separated names without extensions, e.g.
Sum, Matrix. For Java this is also the class name — students must declarepublic class SuminSum.javaLanguages (required): at least one of C, C++, Python3, Simplecpp, Java
Instructor Solution and Documents file uploads
Advanced configuration
Linker Flags, Header Files, and per-language Additional Files for C, C++ and Simplecpp. Additional files are bundled automatically and appear in the student’s editor read-only.
Instructor-provided files are capped at 20 KB each, as are student submissions.
Configure Resource Limits
Configure Resource Limit sets execution limits per language group:
Setting |
Range |
|---|---|
Wall clock / CPU time |
1–240 seconds |
Virtual memory |
15 MB – 256 MB |
Stack size |
8 MB – 64 MB |
CPU time must be ≤ wall clock time, and stack ≤ memory. Defaults are in §10.2.
Child processes are limited to zero. Code that forks or spawns threads will fail whatever time limit you set.
Autograding
Option |
Effect |
|---|---|
Indentation percentage |
Weight given to indentation |
Ignore extra white spaces |
Whitespace-insensitive comparison |
Compare only numbers |
Extract and compare numbers only; adds an error bound and Order is not important |
Case sensitive |
Case-sensitive comparison |
⚠️ “Allow varied delimiters” and the Tab delimiter are permanently on. Both checkboxes render ticked and disabled; you cannot turn them off, despite appearing to be choices.
Rubrics for subjective grading
The Subjective Grading Configuration table holds Criteria, each with Ratings carrying names, descriptions, and marks. Save the activity first, or you get “Please save the activity first”.
The buttons are + ADD, Cancel, Submit, and Clear Rubrics.
5.6 Inside a Lab: Activities, Editing, and Actions
Click a lab’s title to open it. The page shows the lab’s dates and Instructions, then the Activities card.

Next to the lab title, the pencil icon edits the lab’s title, instructions, and dates. Its ⋮ menu offers:
Student View
Download all Programming Submission CSVs and Download Collated CSV
Export Lab
Inside a lab, the Activities card lists everything with per-row View Submissions, Edit, Delete, and a ⋮ menu offering Clone Activity and Export Activity (programming only). Delete is hidden unless you may delete content (§2.7).
Create Activity ▾ offers Programming Activity, Quiz Activity, and Import Activity.
Actions ▾ gives Recycle Bin, Submissions, and Leaderboard. Reorder needs at least two activities: drag, then Save Order.
Restoring Deleted Items from the Recycle Bin
Deleted labs and programming activities go to the Recycle Bin, from which you can Restore or Delete Permanently, individually or in bulk. Open it from the Recycle Bin icon on the labs list; the Labs / Recycle Bin breadcrumb takes you back.

Each row shows the item’s Name and Type (
LaborProgram), with a green Restore icon (“Restore Item?”) and a red Delete Permanently icon (“This action cannot be undone.”). A restored item returns to its original place with its student submissions intact.Actions ▾ applies to the whole bin: Restore All and Delete All.
More than ten items are split into pages (Prev / Next).
With content protection on (§2.7), only the course creator sees the permanent-delete options.
⚠️ The Recycle Bin only protects Programming activities. Quiz activities are deleted permanently and immediately with no recovery. Check what you are deleting.
If a restore fails because the parent lab is itself in the bin, BodhiTree says “Cannot Restore Item”: restore the lab first.
5.7 Import and export
Exporting
Export on the labs list lets you tick individual labs, with an option to include submissions. Single-activity export is on the activity’s ⋮ menu (programming activities only).
A lab export carries both activity types: programming activities with their testcases and quiz activities with their question file. Activities in the Recycle Bin are excluded.
Importing
Import offers two modes — Import Single Lab and Import Multiple Labs — which
expect different archive layouts, so pick the one matching how the archive was exported.
Both take a .zip.
Despite the menu wording (“Import Programming Lab”), the import restores programming and quiz activities alike.
A lab arrives exactly as it was exported. Its dates, visibility, and per-activity publish states all come from the archive — they are not reset. Check and adjust them before students arrive; an imported lab can be visible immediately, with a deadline that has already passed.
Duplicate titles get (Copy), (Copy 2) suffixes rather than overwriting.
⚠️ A multi-lab import is not atomic. Labs are created one after another with no rollback: if one archive is malformed, the labs before it stay imported and the rest are never attempted.
The View sample archive structure link is not wired up yet — it reports “Sample archive structure documentation coming soon”.
5.8 Submissions Management & Student Evaluation
Overall Lab Submissions & Exporting Reports
Open a lab’s submissions from the Submissions icon on the labs list, or Actions ▾ → Submissions inside the lab. Summary cards at the top give the student and activity counts. Below them:
a search box (name, roll number, or email) that filters as you type
All Activities ▾: choose which activities appear as columns
View ▾: show or hide columns (Name, Email, Roll No, Updated On, Activities Submitted, and each activity’s marks)
Actions ▾: Download Selected Submissions (code and files for the ticked students) and Download as CSV (the whole lab’s marksheet)
Each row shows the student’s details, latest submission time, number of activities submitted, and per-activity marks (evaluation, manual, and rubric). Cells read Not Attempted or Not Submitted where there is nothing to grade.
Programming Submissions
Open a programming activity’s submissions from the View Submissions icon on its row. Summary cards count submissions, pending and finished evaluations, rubric grading, and invalid submissions. The toolbar adds:
Run ▾: evaluate pending submissions against Visible, Hidden, or All testcases
Force Run ▾: the same three choices, but re-evaluates submissions that were already evaluated. Use it after you change a testcase, a resource limit, or the reference solution
Filters ▾: submission status, evaluation status, rubric status, validity
View ▾: toggle columns, including one per testcase
More ▾: download as ZIP or CSV, and Bulk Submission
Submission statuses are Submitted, Compilation Error, Runtime Error, Time Limit Exceeded, and Not Uploaded.
Subjective Grading
Click Grade on a student’s row to get a split view: their code read-only on the left, with syntax highlighting, and the grading panel on the right.
Select Student ▾ (with ‹ › arrows) moves between students without going back to the table
Rubrics: apply ratings and comments per criterion
Manual Marks: overrides the automatic score — type the mark and click the green tick to save, for partial credit or a penalty
Run ▾ re-runs the student’s code against the testcases from this page; View ▾ shows each testcase’s status, output against expected output, and execution time
Comments: feedback the student reads with their evaluated submission
JTAs can grade here but cannot change the activity or its testcases.
Submitting on a student’s behalf
Bulk Submission (More ▾) lets you upload for students who could not. It is restricted to Instructors and Senior TAs; JTAs cannot do this.
Lab quiz submissions
Open a quiz activity’s Submissions. Cards show Total Students and Total Submissions (with a refresh button), next to a search box.
View ▾ toggles the optional columns: Roll No, Submitted On, and Graded On
Actions ▾: Download Marks (question-wise marks and totals as CSV) and Download All Files (every uploaded answer file, as
.tar.gz)
Sort by Email, Name, Marks, Total Marks, or Submission Status (Submitted, Incomplete, Not Uploaded). Each row has Download Files (that student’s uploads), View Submission (opens their answer sheet in a new tab), and a trash icon that deletes the submission after a confirmation — for example to let a student retake an incomplete attempt.
Lab Quiz Individual Grading
View Submission opens the student’s answer sheet. Student ▾ at the top right switches between students and shows each one’s status.
Automatically graded questions (Single/Multiple Correct, Numerical, Fill Blanks) are already scored; Answer reveals the key and explanation.
For File Upload, Text, and Descriptive/Paper questions, click the green Grade button on the question. Enter Marks (out of the question’s total) and optional Remarks / Comments (up to 255 characters), then Save. The card then shows the scored marks, who graded it, and when.
The Questions navigator on the right marks attempted questions in green. Below it, the Manual Grading panel lists every manually graded question with its type, grader, date, status (Not Graded → graded), and marks.
Previous: 4. The Multimedia Book (MMB) · Next: 7. Grades and the Gradebook


