This Google Colab app lets users discover and explore cocktails by choosing ingredients, comparing drink options, and getting personalized recommendations based on A/B testing. It's built with Python, interactive widgets (ipywidgets), and TheCocktailDB API.
Click below to launch the notebook in binder (no setup required):
- Select:
- Glass type (e.g., cocktail glass, mug, highball)
- Alcoholic or non-alcoholic
- One main ingredient (e.g., gin, coffee, lime juice)
- Click the button to search
- Get:
- A random drink that matches your criteria
- A full image of the drink
- Instructions and a list of ingredients
- Same as Tab 1 but lets you pick two ingredients
- Example: Mix dark rum + Kahlua
- Great for exploring new combos with what you have
- Click a button to get a random drink from the popular cocktail list
- It will display:
- Drink image
- Instructions
- Ingredients and measurements
- You pick a glass, alcohol type, and an ingredient
- The app finds 2 drinks that match and shows you both
- You choose your preferred drink (A or B)
- Your choice is logged for preference learning
➡ After a few votes, click "Get My Personal Recommendation" to see what the system thinks you'll like!
- 📊 Charts to show:
- Most chosen glass types
- Alcohol preferences
- Top ingredients based on user votes
- ✅ Save your preferences to a CSV file
- 📦 Built with:
- Python
- Ipywidgets
- Requests
- Matplotlib / Seaborn
- Pandas
cocktail_tab.ipynb: main interactive notebook- 'requirements.txt': all the required package
README.md: usage guide