TCHAIClass V01.5 is a browser-based live teaching platform. The teacher runs a small Python server on their laptop. Students connect from any device on the same WiFi network using a session join key.
New in V01.5: Students can now ask an AI assistant for help directly inside the Student View. The teacher sets the context (instruction), students paste their code or question, and Claude responds instantly. The teacher sees which students used AI help in the roster panel.
This guide is configured for teacher Yahya Nazar. The project is installed at: /Users/yahyanazer/Dropbox/TchAIClass
The platform has two windows:
Teacher Console — full session control, tool selection, AI instruction, roster management
Student View — receive tools, raise hand, react, send questions, ask AI for help
What is New in V01.5
Feature
Description
AI Help Panel
New panel in Student View — students paste code or questions and get an instant answer from Claude
Three AI Modes
Fix (debug code), Add (extend with new feature), Explain (understand a concept)
Teacher AI Instruction
Teacher sets context once at session start — guides every student’s AI interaction
AI Roster Indicator
Teacher sees a 🤖 badge next to any student who has used AI help
AI Activity Log
Every AI interaction is logged to the Event Log and saved with the session
.env API Key
Anthropic API key stored securely in a local .env file — students never see it
Note
V01.5 is fully backwards compatible. If no API key is set, the platform runs exactly as V01 — the AI panel shows a disabled message and everything else works normally.
Window Layout
The diagram below shows the panel layout for both windows. Each panel is labelled A through F and colour-coded by function.
Keep your .env file private. Never share it, email it, or commit it to GitHub. It contains your personal API key. The .env.template file is safe to share — it contains no real key.
Get your API key:
Go to console.anthropic.com
Sign in or create a free account
Click API Keys → Create Key
Copy the key and paste it into your .env file
Verification:
Notes / Issues:
Step 4 — Start the Server
Open Terminal and run both commands. Leave Terminal open for the entire session.
```bash
cd /Users/yahyanazer/Dropbox/TchAIClass/Development
python3 server.py
```
Expected Terminal output in V01.5:
[DEBUG] .env file loaded
[DEBUG] Anthropic AI - ENABLED
[DEBUG] TCHAIClass V01.5 Server starting...
[DEBUG] Teacher -> http://localhost:5000/teacher
[DEBUG] Student -> http://192.168.x.x:5000/student
[DEBUG] AI Help -> ENABLED
[DEBUG] Share this URL with students on the same WiFi
* Serving Flask app 'server'
* Debug mode: on
Warning
If you see [DEBUG] Anthropic AI - DISABLED check that your .env file exists and contains a valid API key, then restart the server.
The warning about urllib3 is harmless — ignore it.
If you see Address already in use repeat Step 1 — AirPlay Receiver is still on.
Verification:
Notes / Issues:
Step 5 — Open Teacher Window (Panel A)
Open Chrome or Safari and go to the Teacher URL.
http://localhost:5000/teacher
You will see the Start a Session setup card — this is Panel A. Notice the new AI Instruction field added in V01.5.
Verification:
Notes / Issues:
Step 6 — Start a Session with AI Instruction
Fill in the setup card including the new AI Instruction field, then launch the session.
Instructions:
Select Demo Course from the Course dropdown
Select Introduction Class from the Class dropdown
Type your name — Yahya Nazar — in the Teacher Name field
Type an AI instruction in the AI Instruction field — for example:
Fix the bug in the for loop and explain what was wrong
Click START SESSION
The join key will appear in large letters. Write it down — students need it.
Join Key received: ________
Note
The AI Instruction is the context Claude uses when students ask for help. It tells Claude what the lesson is about and what kind of help to give. You can leave it blank and Claude will still answer, but a good instruction leads to better, more focused answers.
Good instruction examples:
“Fix the syntax errors in the Python script”
“Add a function to calculate the average of a list”
“Explain what a for loop does in simple terms”
Verification:
Notes / Issues:
Step 7 — Students Open the Student Window (Panel A)
Each student opens a browser on their own device and goes to the Student URL. The exact IP is shown in your Terminal after Step 4.
http://[IP shown in Terminal]:5000/student
Important
Students must use the IP address shown in your Terminal — notlocalhost. Only Yahya Nazar’s machine can use localhost.
Students fill in the join form:
Field
Value
Your Name
Student’s own name
Student ID
e.g. S001, S002
Join Key
Key from Step 6
Students click JOIN CLASS.
Verification:
Notes / Issues:
Step 8 — Select and Push a Tool (Panels B, C, D)
The teacher selects a tool from Panel B and pushes it to students via Panel C. The tool loads in Panel D on both the teacher and student screens.
Instructions:
In the Teacher window look at Panel B on the left
Click HTML Tools to expand the category
Click Whiteboard to select it
The tool preview appears in Panel C
Click Push to All Students in Panel C
Verification:
Notes / Issues:
Step 9 — Student Uses AI Help (AI Panel)
This is the new step in V01.5. Students use the AI Help panel to get assistance with their code or questions.
Instructions for the student:
Look at the AI Help panel on the right side of the Student View
Choose a mode:
🐛 Fix — paste broken code and ask Claude to find and fix the bug
✚ Add — paste code and describe a feature to add
❓ Explain — paste code or a concept to get a plain-language explanation
Paste the code or type the question in the text area
Click Ask AI
The answer appears in the panel within a few seconds
Example — Fix mode:
A student pastes this broken Python code:
for i inrange(10)print(i)
Claude responds with the fix and an explanation of the missing colon.
What the teacher sees:
A 🤖 badge appears next to the student’s name in Panel E roster
A toast notification shows: “Ali Reza asked AI for help”
The Event Log records the student name, mode, and first 80 characters of their question
Verification:
Notes / Issues:
Step 10 — Test Participation Features (Panel E)
Students use Panel E to interact with the teacher.
Instructions:
In the Student window Panel E, click Raise Hand
Click a reaction button (thumbs up, question, etc.)
Type a question in Q&A and click Send
Verification:
Notes / Issues:
Step 11 — End Session (Panel C)
When the lesson is complete, the teacher ends the session from Panel C. The session log now includes the full AI interaction history.