For classrooms with limited or no internet access.
✅ Weeks 1-12: Work completely offline (no internet needed after Thonny install)
- Visit: https://thonny.org/
- Download appropriate version:
- Windows:
thonny-4.x.x.exe(includes Python) - macOS:
thonny-4.x.x.pkg - Linux:
thonny-4.x.x-x86_64.tar.gz
- Windows:
- Save installer to USB drive
# Option A: Download as ZIP from GitHub
# Go to: https://github.com/devatsecure/PythonQuest
# Click "Code" → "Download ZIP"
# Extract to USB drive
# Option B: Clone with git (if you have it)
git clone https://github.com/devatsecure/PythonQuest.git
# Copy folder to USB drive# Download wheel file
pip download pgzero --dest pygame_wheels
# This creates: pygame_wheels/pgzero-1.x.x-py3-none-any.whl
# Copy entire pygame_wheels folder to USB drive- Visit: https://codewith.mu/en/download
- Download installer for your OS
- Save to USB drive
Windows:
# From USB drive
thonny-4.x.x.exe
# Follow installer promptsmacOS:
# From USB drive
sudo installer -pkg thonny-4.x.x.pkg -target /Linux:
# Extract and run
tar -xzf thonny-4.x.x-x86_64.tar.gz
cd thonny
./thonnyCopy entire PythonQuest folder to:
- Windows:
C:\Users\[Username]\Documents\PythonQuest - macOS:
/Users/[Username]/Documents/PythonQuest - Linux:
/home/[Username]/Documents/PythonQuest
Or: Each student can work directly from USB drive (slower but works)
From Thonny:
- Tools → Open System Shell
- Navigate to USB drive with pygame_wheels folder
- Run:
pip install --no-index --find-links=pygame_wheels pgzero
Or from command line:
pip install --no-index --find-links=/path/to/pygame_wheels pgzeroSame as Thonny - run installer from USB drive.
No internet needed at any point!
- Open Thonny
- Navigate to week folder
- Open
.pyfile - Press F5 to run
Everything works without internet.
No internet needed!
Turtle is built into Python standard library - works offline.
After initial Pygame Zero install, fully offline
- Install Pygame Zero once (see Step 3 above)
- All weeks then work offline
- Students can create and run games without internet
Option A: Mu Editor (Best)
- Install Mu Editor offline (Step 4 above)
- Connect micro:bit via USB
- Write code and flash - works offline!
Option B: Manual .hex File Transfer
- Write code in Thonny (offline)
- Manually create .hex file (requires Python microbit module)
- Copy to micro:bit USB drive
Option C: Online Editor (Requires Internet)
- Use https://python.microbit.org/
- Download .hex files
- Transfer to micro:bit
Option D: Simulator Only (No Hardware)
- Use online simulator (one computer with internet)
- Project on screen for class demonstration
- Students code in Thonny (offline)
Cause: Pygame Zero not installed
Fix: Follow Step 3 above with pygame_wheels folder
Cause: USB cable or driver issue
Fix:
- Try different USB cable (some are charge-only)
- Install driver from USB drive (prepare beforehand)
Cause: No internet
Fix: Use Mu Editor (offline) or simulator-only approach
Folder structure for classroom USB:
USB Drive/
├── PythonQuest_Offline_Kit/
│ ├── 1_Installers/
│ │ ├── thonny-windows.exe
│ │ ├── thonny-mac.pkg
│ │ ├── thonny-linux.tar.gz
│ │ ├── mu-editor-windows.exe
│ │ └── mu-editor-mac.dmg
│ ├── 2_Curriculum/
│ │ └── PythonQuest/ (complete repo)
│ ├── 3_Dependencies/
│ │ └── pygame_wheels/
│ │ └── pgzero-1.x.x-py3-none-any.whl
│ ├── 4_Drivers/
│ │ └── microbit-driver-windows.exe (if needed)
│ └── SETUP_INSTRUCTIONS.txt
PYTHONQUEST OFFLINE SETUP
=========================
1. Install Thonny from 1_Installers folder
2. Copy 2_Curriculum/PythonQuest to Documents
3. Open Thonny → Open week01/week01_story_printer.py
4. Press F5 - should work!
For Weeks 13-18:
- Run from Thonny shell: pip install --no-index --find-links=3_Dependencies/pygame_wheels pgzero
For Weeks 19-24:
- Install Mu Editor from 1_Installers
- OR use online editor with internet
Questions? See docs/TROUBLESHOOTING.md
- Thonny installer: ~20-50 MB (includes Python)
- PythonQuest curriculum: ~5 MB
- Pygame Zero wheel: ~500 KB
- Mu Editor: ~150-200 MB
- Total: ~200-300 MB
Can fit on:
- ✅ USB drive (any size)
- ✅ CD/DVD
- ✅ School network shared folder
- ✅ Download once, distribute to all computers
For schools with managed computer labs:
- IT admin installs Thonny + Pygame Zero + Mu on all computers (once)
- Copy PythonQuest to shared network drive
- Students access from network (no USB needed)
- Everything works offline semester-long
Setup time: 30 min for 30 computers (with remote deployment)
If you cannot install ANY software:
- Download portable Python + Thonny (runs from USB, no install)
- Available from: https://winpython.github.io/ (Windows)
- Or use online editors (requires internet):
- Replit.com
- Trinket.io
- Google Colab
Before going to classroom:
- Disconnect from internet
- Test Weeks 1-6: Should work perfectly
- Test Weeks 7-12: Turtle should work
- Test Week 13: Pygame Zero should work (if installed offline)
- Test Week 19: Mu Editor should open
If all work → Setup is successful! ✅
- See main TROUBLESHOOTING.md
- See platform-specific guides: