# Pyodide Exercise

> Create browser-based Python exercises using Pyodide. Use for interactive coding without local setup.

- Skill: `majiayu000/pyodide-exercise` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/pyodide-exercise`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/pyodide-exercise/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/pyodide-exercise

---


# Pyodide Exercise Skill

**Purpose**: Create interactive Python exercises that run in the browser using Pyodide.

## When to Use

- Creating hands-on coding exercises
- Building Tier 1 alternatives for GPU-required content
- Making robotics concepts accessible without hardware

## Capabilities

| Feature | Support |
|---------|---------|
| Python 3.11 | Full |
| NumPy | Yes |
| Matplotlib | Yes (inline) |
| Custom modules | Via micropip |
| MockROS | Custom bridge |

## Exercise Structure

```
<PythonRunner>
  - Initial code (editable)
  - Test cases (hidden or visible)
  - Expected output
  - Hints (progressive)
</PythonRunner>
```

## Output

- PythonRunner component with exercise
- Pre-loaded imports
- Test validation logic
- Success/failure feedback

## Integration

- Used by lesson-generator for interactive exercises
- Works with MockROSBridge for ROS simulation
- Integrated with RobotViewer for visualization

---

**Status**: Placeholder - To be implemented for interactive lab component (Phase 6).

