Py-activity Example
TODO: this ai settings file should generate from source!
AI settings
for example:
- Ollama
http://127.0.0.1:11434/v1- Cerebras
https://api.cerebras.ai/v1
This filter formats ‘activity code blocks’ and injects JS and CSS.
Here is a random div. It should not be parsed!
Multiple choice questions
Here is an activity (Current supported syntax is a subset of (quarto) quizdown)
What is the value of 1+1 (\(1+1\))?
Python Lists (multiple choice)
What is the value of x[2]?
x = [2, 3, 4]
print(x[2])Text activity
Allow user to type answer freely (exact match answer)
What does this print?
print(0.2+0.1==0.3)Allow user to type answer freely (AI grades answer, unreliable and scary?)
What does this print?
print(0.2+0.1==0.3)Compare some prompts…
Choice
What does this python code do?
print(0.2+0.1==0.3)i think
What does this python code do?
print(0.2+0.1==0.3)answer
What does this python code do?
print(0.2+0.1==0.3)