Some models from the book are available as Jupyter notebooks on github.

Chapter 3: Promotions and Advertisements

Chapter 4: Search

Chapter 5: Recommendations

Chapter 6: Pricing and Assortment