Lab: trying out code and coding tasks
Where: Menu → Lab; coding tasks on your class’s page

In the lab you write web pages (HTML, CSS, JavaScript) with a live preview, and programs in Python, JavaScript, Go, Java or PowerShell. Programs run sealed off, without network, on the server; web pages run in a sealed-off frame in your browser. Your projects are saved by themselves.
How to
Section titled “How to”- Under Menu → Lab, tab “My projects”, click “Create project”. In the window, enter a name, choose the language (or Web page (HTML, CSS, JavaScript)) and click “Create project”.
- Write your code. “New file” adds more files; the program always starts with the first file (e.g. main.py).
- Click “Try it out”. Under “Input for the program” you give it what it reads. For a web page you see the preview and the console at once.
- “Keep this version” keeps a state you can go back to later: under the versions, Go back to it.
The editor says whether your work is saved: All changes saved or Changes not saved yet. Saved elsewhere meanwhile means the project was changed in another window or by someone editing with you: Load the saved version loads it (your unsaved changes there are dropped).
Fields and buttons
Section titled “Fields and buttons”- Coding tasks: When your trainer gives the class a task, it appears on your class’s page. Opening it gives you your own copy of the starting files. “Hand in” keeps the current state for the trainer; hidden tests check it if the task has any (“The tests are running …” while they do). The part Handing in shows your submissions and their state.
- Who decides: Depending on the task, the tests decide, the trainer decides, or the tests check first and the trainer decides. If the trainer returns your submission for changes, you can hand it in again (Hand in again).
- Code tile in the Creative Space: On the canvas, choose a language in the code tile: the program then runs at the press of a button, or the web page appears as a preview beside it. “Copy to my lab” turns it into a project.
Tabs and Git
Section titled “Tabs and Git”- The lab has the tabs “My projects”, “Class tasks” and “Environment tests” (each only when you have some, with its number) and “Git”.
- On “Git”, “Create repository” opens a window for the name and a Description (optional). Each repository is a card with its clone address, “Open”, “Download as bundle” and “Delete”.
- “Git token” is a folded part below the repositories, with the number of tokens. Open it to revoke a token or click “Create a new Git token”. The new token shows once in a window with a copy button: copy it before you close the window.
Working in a lab environment
Section titled “Working in a lab environment”Some tasks and projects come with an environment: a session of your own on the lab server, with services, a command line and a preview.
- Start session starts it (“Starting …”); the line then says Session running, else No session running, Session stopped or The session could not start. Stop session ends it; your files are saved either way. A session also stops after 15 minutes without activity, after 4 hours, or when the lab time of the course or class is used up.
- Save the session’s files saves what you changed in the session now.
- Session view: switch between the output of the actions (Start, Run, Test, Build, Format), the command line and the preview.
- Open the command line opens a terminal in the session (Command line ready); Close command line closes it (Command line closed). The keys below it send what a phone keyboard lacks: Tab, Esc, Ctrl+C (stops a running program), arrows.
- Milestones: each milestone checks your project in the running session; a passed one keeps files and data as a state, and Back to this state returns to it (the session stops and later changes are replaced).
- Web server (PHP projects): enter a page and Open in the web server: the project runs in PHP’s built-in web server and the answer shows; Source of the answer shows it as text.
Git in the session
Section titled “Git in the session”Under Git in the session, Choose a repository of yours and link it: each session gets a clone. Commit and push in the command line; Take what was pushed now takes it into the repository at once (stopping does too).
A Git repository in the browser
Section titled “A Git repository in the browser”“Open” on a repository shows its files, history and branches:
- Branch or tag chooses what you look at; the history can show All branches. Download as ZIP downloads the files of that state.
- Edit a file, or add one with its path (With folders, e.g. src/app.js); Delete file removes one. Write a Commit message and Commit, or Commit to a new branch with the Name of the branch.
- Create branch makes a branch from the one shown.
- Merge: choose what to Bring in and the Into branch, then Look at the merge. It says whether nothing is to do, a fast-forward is enough (Make a merge commit anyway if you want one), or files conflict: choose per part which side to take, or, for a file one branch deleted, keep it or Delete the file. Then merge.