返回 Skill 列表
extension
分类: 开发与工程无需 API Key

"pyodide-exercise"

使用Pyodide创建基于浏览器的Python练习。无需本地设置即可进行交互式编码。

person作者: jakexiaohubgithub

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).