Interactive computational environments can help students explore algorithmic concepts through collaborative hands-on experimentation. However, static and instructor controlled demos in lectures limit engagement. Even when interactive visualizations are used, interactions are solely controlled by the instructor, leaving students as passive observers. In addition, the tools used for demonstration often vary significantly, as they are typically developed by individual instructors. Consequently, the visualizations remain confined to a single classroom, rather than being shared and adapted across courses or reused by other instructors. To address this gap and foster active engagement in live classrooms, we present a lightweight and seamless software framework named LEAP for developing interactive computational lab exercises using a simple idea: remotely callable instructor-defined functions. Using API endpoints and a provided client, students can discover and then call instructor defined functions remotely from their coding environment using scripts or interactive notebooks. Each function call is time-stamped and persistently logged in a database, allowing real-time visualization of participation, diverse solution paths, common pitfalls, and live feedback through collaboration, gamification, and quizzes. Labs are packaged as self-contained folders, each containing their own remotely callable functions. We provide example labs to demonstrate applications relevant for numerical analysis, machine learning, algorithms courses and mention some in electrical engineering (EE), economics, and physics. These capabilities enhance engagement and provide instructors with actionable insights into learning processes. With a standardized lab format and an online directory for community-contributed labs, we aim to foster a global ecosystem for exchanging and expanding interactive pedagogy enabled by LEAP.
翻译:交互式计算环境能够帮助学生通过协作式动手实验探索算法概念。然而,讲座中静态且由教师控制的演示限制了学生的参与度。即使采用交互式可视化工具,交互过程仍完全由教师操控,学生仅能被动观察。此外,由于演示工具通常由授课教师独立开发,不同工具间存在显著差异。这导致可视化教学资源往往局限于单一课堂,难以在不同课程间共享、适配或被其他教师复用。为弥补这一不足并提升实时课堂的主动参与度,我们提出一种轻量级无缝软件框架LEAP,其通过一个简洁理念——可远程调用的教师自定义函数——来开发交互式计算实验练习。借助API端点与提供的客户端,学生可通过脚本或交互式笔记本在编程环境中发现并远程调用教师定义的函数。每次函数调用均被时间戳标记并持久化记录至数据库,支持通过协作、游戏化与测验等方式实时可视化参与情况、多样化解题路径、常见错误陷阱及即时反馈。实验模块以自包含文件夹形式封装,每个文件夹包含其独立可远程调用的函数集。我们提供了涵盖数值分析、机器学习、算法课程的应用示例,并列举了电气工程、经济学及物理学领域的相关案例。这些功能显著提升了课堂参与度,并为教师提供了可操作的学习过程洞察。通过标准化实验格式及社区贡献实验的在线目录,我们致力于构建一个基于LEAP的全球生态系统,以促进交互式教学法的交流与拓展。