Abstract
There is an increasing interest in learning outside of the traditional classroom setting. This is especially true for topics covering computational tools and data science, as both are challenging to incorporate in the standard curriculum. These atypical learning environments offer new opportunities for teaching, particularly when it comes to combining conceptual knowledge with hands-on experience/expertise with methods and skills. Advances in cloud computing and containerized environments provide an attractive opportunity to improve the efficiency and ease with which students can learn. This manuscript details recent advances towards using commonly-available cloud computing services and advanced cyberinfrastructure support for improving the learning experience in bootcamp-style events. We cover the benefits (and challenges) of using a server hosted remotely instead of relying on student laptops, discuss the technology that was used in order to make this possible, and give suggestions for how others could implement and improve upon this model for pedagogy and reproducibility.
Introduction
Traditional "bootcamp-style" workshops often lose their first few hours to the dreaded "install-fest." Because students bring a wide variety of hardware and operating systems, instructors face a nightmare of broken paths, missing libraries, and incompatible versions. This "dependency hell" creates significant technical friction that detracts from the actual learning objectives.
Beyond technical friction, there is a fundamental equity issue: students with older or less powerful laptops are often unable to run modern, computationally intensive algorithms, such as deep learning, effectively barring them from full participation. This paper presents a case study on moving data science instruction away from student laptops and into a standardized, cloud-based environment that ensures every student has the computational power needed for complex analysis.
Methodology and Implementation
The authors developed a "Portable Learning Environment" stack utilizing three core technologies to provide a "clean," high-performance, and identical computing environment to every student regardless of their personal hardware:
- Docker: A custom Docker image was created containing the entire software stack, including Python, Jupyter, and specific neuroimaging libraries. This ensured the environment used by the instructor during development was identical to the one used by students.
- XSEDE Jetstream: A cloud-based provider allowed the team to spin up 50 individual Virtual Machines (VMs). Each student was assigned a unique IP address corresponding to their own private VM.
- Jupyter Notebooks: This served as the primary user interface, allowing students to interact with code, text, and visualizations through a standard web browser without local installation.
The workflow involved building the image on a local machine, pushing it to DockerHub, and then using a bash script to pull that image onto the 50 Jetstream VMs. To prevent 50 students from crashing the network by downloading large files simultaneously, datasets (including fMRI and microscopy data) were pre-loaded into a common data folder within the Docker image before the workshop began.
Results and Performance
The environment was tested during a neuroimaging workshop at UCSF. The team successfully deployed 50 VMs (40 for students, 5 for instructors, and 5 spares). Each student was allocated an m1.medium instance, providing 6 vCPUs, 16GB RAM, and 60GB of storage—specs that often exceed the capabilities of standard student laptops.
Key results from this deployment include:
- Zero Startup Cost: Students could start coding immediately upon accessing their assigned IP address.
- Silent Updates: Instructors could push bug fixes or new libraries to the cloud instances mid-workshop without requiring student intervention.
- Cost Efficiency: The workshop utilized approximately 10,000 Service Units (SUs) on Jetstream. The authors estimated that a similar setup on commercial cloud providers (AWS or GCP) would have cost between $600 and $700 (at 2017 prices).
Discussion and Future Directions
While cloud environments offer seamless setup, the authors highlight the "off-boarding" challenge: students eventually need to move back to their own machines. Teaching students how to replicate the Docker environment locally is essential for long-term skill retention. Furthermore, by using Docker, the course itself becomes a reproducible object; years later, a student can pull the exact same image and know the code will still run.
Future work points toward JupyterHub and Kubernetes as the next logical steps for managing many users on a single cluster more efficiently than individual VMs. The authors also advocate for university-level micro-grants to cover cloud costs for short-term teaching events, lowering the financial barrier for smaller institutions.
Summary updated