---
title: "Lab Notebooks"
---

## Interactive Jupyter Notebooks

All 18 lab chapters have companion Jupyter notebooks with runnable code examples.

::: {.callout-note}
## Quick Start
Click any "Open in Colab" badge to run the notebook with free GPU access.
:::

## Notebooks by Part

### Part I: Foundations

| Lab | Title | Notebook | Colab |
|-----|-------|----------|-------|
| LAB01 | Introduction to Edge Analytics | [LAB01_introduction.ipynb](../../notebooks/LAB01_introduction.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB01_introduction.ipynb) |
| LAB02 | Machine Learning Foundations | [LAB02_ml_foundations.ipynb](../../notebooks/LAB02_ml_foundations.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB02_ml_foundations.ipynb) |
| LAB03 | TFLite and Quantization | [LAB03_tflite_quantization.ipynb](../../notebooks/LAB03_tflite_quantization.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB03_tflite_quantization.ipynb) |

### Part II: Core Skills

| Lab | Title | Notebook | Colab |
|-----|-------|----------|-------|
| LAB04 | Keyword Spotting | [LAB04_keyword_spotting.ipynb](../../notebooks/LAB04_keyword_spotting.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB04_keyword_spotting.ipynb) |
| LAB05 | Edge Deployment Pipeline | [LAB05_deployment.ipynb](../../notebooks/LAB05_deployment.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB05_deployment.ipynb) |
| LAB06 | Edge Security | [LAB06_edge_security.ipynb](../../notebooks/LAB06_edge_security.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB06_edge_security.ipynb) |
| LAB07 | CNNs and Computer Vision | [LAB07_cnns_cv.ipynb](../../notebooks/LAB07_cnns_cv.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB07_cnns_cv.ipynb) |

### Part III: Hardware Integration

| Lab | Title | Notebook | Colab |
|-----|-------|----------|-------|
| LAB08 | Arduino Sensors | [LAB08_arduino_sensors.ipynb](../../notebooks/LAB08_arduino_sensors.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB08_arduino_sensors.ipynb) |
| LAB09 | ESP32 Wireless | [LAB09_esp32_wireless.ipynb](../../notebooks/LAB09_esp32_wireless.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB09_esp32_wireless.ipynb) |
| LAB10 | EMG Biomedical | [LAB10_emg_biomedical.ipynb](../../notebooks/LAB10_emg_biomedical.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB10_emg_biomedical.ipynb) |

### Part IV: Edge Systems

| Lab | Title | Notebook | Colab |
|-----|-------|----------|-------|
| LAB11 | Profiling and Optimization | [LAB11_profiling.ipynb](../../notebooks/LAB11_profiling.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB11_profiling.ipynb) |
| LAB12 | Real-Time Streaming | [LAB12_streaming.ipynb](../../notebooks/LAB12_streaming.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB12_streaming.ipynb) |
| LAB13 | Distributed Data | [LAB13_distributed.ipynb](../../notebooks/LAB13_distributed.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB13_distributed.ipynb) |

### Part V: Advanced Topics

| Lab | Title | Notebook | Colab |
|-----|-------|----------|-------|
| LAB14 | Anomaly Detection | [LAB14_anomaly_detection.ipynb](../../notebooks/LAB14_anomaly_detection.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB14_anomaly_detection.ipynb) |
| LAB15 | Energy Optimization | [LAB15_energy.ipynb](../../notebooks/LAB15_energy.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB15_energy.ipynb) |
| LAB16 | Computer Vision with YOLO | [LAB16_cv_yolo.ipynb](../../notebooks/LAB16_cv_yolo.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB16_cv_yolo.ipynb) |
| LAB17 | Federated Learning | [LAB17_flower_federated.ipynb](../../notebooks/LAB17_flower_federated.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB17_flower_federated.ipynb) |
| LAB18 | On-Device Learning | [LAB18_ondevice_learning.ipynb](../../notebooks/LAB18_ondevice_learning.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/YOUR_USERNAME/edge-analytics-lab-book/blob/main/notebooks/LAB18_ondevice_learning.ipynb) |

## Running Locally

```bash
# Clone repository
git clone https://github.com/YOUR_USERNAME/edge-analytics-lab-book.git
cd edge-analytics-lab-book

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Start Jupyter Lab
jupyter lab notebooks/
```

## Dependencies

All notebooks require:

```
tensorflow>=2.10
numpy
matplotlib
scikit-learn
pandas
```

Some labs require additional packages (installed automatically in Colab):

- LAB09: `paho-mqtt`
- LAB12: `plotly`, `dash`
- LAB16: `opencv-python`
- LAB17: `flwr` (Flower)
