Skip to content

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.

  1. Under Menu → Lab, enter a name, choose the language and click “Create project”.
  2. Write your code. “New file” adds more files; the program always starts with the first file (e.g. main.py).
  3. 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.
  4. “Keep this version” keeps a state you can go back to later.
  • 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.
  • 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.
  • 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.