EduGym: An Environment and Notebook Suite for Reinforcement Learning Education
Thomas M. Moerland, Matthias Müller-Brockhausen, Zhao Yang, Andrius Bernatavicius, Koen Ponse, Tom Kouwenhoven, Andreas Sauter, Michiel van der Meer, Bram Renting, Aske Plaat
TL;DR
EduGym addresses a key gap in reinforcement learning education by providing a library of low-dimensional, pedagogically focused environments that isolate specific RL challenges, paired with interactive notebooks that connect theory and code. The nine challenges (e.g., exploration, partial observability, stochasticity, model-based planning) allow students to experiment with tunable difficulty and observe how different algorithms respond in controlled settings. Empirical student evaluation shows high perceived utility for both conceptual and practical understanding, supporting EduGym’s potential as a scalable teaching tool. The work highlights a shift toward interpretable, experiment-friendly educational resources that complement existing textbooks and public codebases, with open-source materials and online notebooks available for broader adoption.
Abstract
Due to the empirical success of reinforcement learning, an increasing number of students study the subject. However, from our practical teaching experience, we see students entering the field (bachelor, master and early PhD) often struggle. On the one hand, textbooks and (online) lectures provide the fundamentals, but students find it hard to translate between equations and code. On the other hand, public codebases do provide practical examples, but the implemented algorithms tend to be complex, and the underlying test environments contain multiple reinforcement learning challenges at once. Although this is realistic from a research perspective, it often hinders educational conceptual understanding. To solve this issue we introduce EduGym, a set of educational reinforcement learning environments and associated interactive notebooks tailored for education. Each EduGym environment is specifically designed to illustrate a certain aspect/challenge of reinforcement learning (e.g., exploration, partial observability, stochasticity, etc.), while the associated interactive notebook explains the challenge and its possible solution approaches, connecting equations and code in a single document. An evaluation among RL students and researchers shows 86% of them think EduGym is a useful tool for reinforcement learning education. All notebooks are available from https://www.edugym.org/, while the full software package can be installed from https://github.com/RLG-Leiden/edugym.
