Chapter 6 Python Code Alongs

In these code alongs, we learn parallel programming in Python with the multiprocessing module and use it to build a reaction-diffusion simulator. Work through them in order; each lesson contains the video in which we write the code together.

  1. Parallelism vs. Concurrency
  2. Summing a List Across Processes in Python
  3. Any Number of Processes and Timing the Speedup in Python
  4. Parallel Craps in Python
  5. A Serial Diffusion Simulator in Python
  6. Parallel Diffusion with Pool and starmap in Python
  7. Reaction-Diffusion: Designing the Serial Engine in Python
  8. Reaction-Diffusion: Applying Reactions in Python
  9. Parallel Reaction-Diffusion: Strips and Halos in Python
  10. Parallel Reaction-Diffusion: Processing Strips in Python
  11. A Tour of Reaction Systems
Scroll to Top
Programming for Lovers banner no background
programming for lovers logo cropped

Join our community!