Skip to main content

Appendix D — Master Interactive Google Colab & Companion Ecosystem Index

How to Use This Appendix: Every chapter of From First Line to First Paper is mirrored 1-to-1 with interactive Google Colab notebooks (Walkthrough, Guided To-Dos, 100-point Coding Exam, and Annotated Solutions) backed by our automated diagnostic engine sharukh-tutor. Click any link below to launch a live cloud session with zero local installation, or browse the complete Google Drive mirror folder.


D.1 Quick-Start Hub & sharukh-tutor API Card

D.1.1 Ecosystem Entry Points

Resource Direct Launch Link Purpose
Master Hub Notebook Open 00_START_HERE.ipynb in Colab Clickable directory & setup verifier
Colab Orientation Open 00_colab_orientation.ipynb in Colab 2-minute runtime & dataset warm-up
GitHub Repository github.com/sharukh01621/first-line-to-first-paper Live source code, notebooks & sharukh_tutor
Google Drive Mirror Open Shared Google Drive Folder Full Drive mirror of notebooks & CSV data
TipRecommended 3-Step Workflow for Every Chapter
  1. Click a notebook link below, then choose File \(\rightarrow\) Save a copy in Drive so your edits persist across sessions.
  2. Run Step 0 to install and activate sharukh-tutor, then work through each # YOUR CODE HERE cell using tutor.hint(..., level=1..3) before checking with tutor.check(...).
  3. Before submitting or moving on, select Runtime \(\rightarrow\) Restart session and run all and confirm tutor.summary() reports every exercise passing cleanly.

D.1.2 sharukh-tutor Interactive API Cheat Card

Function Call Signature & Purpose
tutor.activate(...) activate(chapter, notebook="todos", quiet=False) — Starts a fresh verification session and loads chapter checks
tutor.hint(...) hint(exercise_id, level=1) — Displays progressive guidance: level=1 (Concept), level=2 (Algorithm Blueprint), level=3 (Code Skeleton)
tutor.check(...) check(exercise_id, submission=None, **kwargs) — Runs layered diagnostic tests on your variable, array, DataFrame, or function
tutor.check_exam(...) check_exam(chapter, submissions) — Grades all coding exam tasks and prints a 100-point diagnostic scoreboard
tutor.summary() summary() — Prints live pass/open status, points earned, and hint usage across the current notebook session
tutor.load_data(...) load_data(name, as_pandas=False) — Loads bundled spine datasets as list[dict] (Parts I–II) or pd.DataFrame (as_pandas=True, Parts IV–VII)
# Standard Colab Step-0 activation cell (paste into any fresh notebook)
REPO = "https://github.com/sharukh01621/first-line-to-first-paper.git"
!pip install -q "git+{REPO}#subdirectory=sharukh_tutor"

import sharukh_tutor as tutor

tutor.activate(chapter="ch18", notebook="guided_todos")
print(tutor.list_datasets())

# Load as list[dict] (stdlib csv) or pandas.DataFrame
rows = tutor.load_data("clinic_triage", as_pandas=False)
mch_df = tutor.load_data("mch_survey_sample", as_pandas=True)

D.2 Spine Public Health Datasets Dictionary

Three realistic, public-health-inspired synthetic datasets accompany this curriculum from Chapter 1 through Chapter 36 so you can trace how the exact same data problems evolve from basic Python loops to calibrated ML and PyTorch models.

D.2.1 1. clinic_triage.csv (120 Rows, 11 Columns)

  • Domain: Upazila community clinic patient intake records across 6 districts.
  • Exact Columns: patient_id (UHC-0001–UHC-0120), district, age_years, sex (F/M), weight_kg, height_cm, temp_c, systolic_bp, hemoglobin_g_dl, fever_days, triage_priority (Routine: 64, Moderate: 56).
  • Data Quality & Quirks: Zero missing cells by design—serves as the clean anchor dataset for Parts I–III (BMI calculation, fever triage branching, CSV/JSON I/O, OOP PatientRecord classes) and introductory classification/regression benchmarks.

D.2.2 2. mch_survey_sample.csv (500 Rows, 12 Columns)

  • Domain: Demographic and Health Survey (DHS)-style Maternal & Child Health household survey spanning 8 divisions and 50 primary sampling clusters (cluster_id).

  • Exact Columns: household_id (MCH-00001–MCH-00500), cluster_id, division, residence, wealth_quintile (Poorest to Richest), maternal_age_years, anc_visits, maternal_hb_g_dl, maternal_anemia (0/1), child_haz, child_stunted (0/1), fully_vaccinated (0/1).

  • Deliberate Real-World Quirks:

    • residence contains mixed-case entry errors ('Rural': 345, 'Urban': 140, 'rural': 11, 'urban': 4) requiring .str.strip().str.title().
    • anc_visits encodes 8 “Don’t Know / Refused” responses using legacy survey sentinel code 999 (must be replaced with np.nan before averaging or modeling!).
    • maternal_hb_g_dl has 22 missing (NaN) laboratory readings requiring leakage-free imputation inside Scikit-Learn pipelines.
    • Clustered household structure (cluster_id) mandates GroupKFold / StratifiedGroupKFold in Parts V and VII.

D.2.3 3. epi_surveillance.csv (416 Rows, 8 Columns)

  • Domain: Weekly district-level infectious disease surveillance and meteorological panel (\(4\text{ districts} \times 2\text{ years [2024–2025]} \times 52\text{ epi-weeks} = 416\text{ rows}\)).
  • Exact Columns: year, epi_week (1–52), district (Dhaka, Chattogram, Sylhet, Rajshahi), population, rainfall_mm, mean_temp_c, dengue_cases, respiratory_cases.
  • Data Quality & Quirks: Zero missing values; displays strong seasonal monsoon peaks, lagged rainfall-to-dengue transmission, and cross-district population scale differences (requiring incidence normalization per \(100{,}000\) population, panel-safe .groupby("district").shift(), TimeSeriesSplit, and GRU/LSTM sequence windowing in Chapter 31).

D.3 Complete 36-Chapter Master Colab Launch Index

All URLs below open directly in Google Colab from the live repository (colab_drive/<part>/<chapter>/... and colab_drive/solutions/<part>/<chapter>/...).

D.3.1 Part I: Computational Thinking & Python from Absolute Zero (Chapters 1–6)

Ch Chapter Focus Walkthrough To-Dos Exam Solutions
01 First Program & Colab Lab To-Dos Exam To-Dos / Exam
02 Variables, Memory & Types Lab To-Dos Exam To-Dos / Exam
03 Strings, Formatting & Input Lab To-Dos Exam To-Dos / Exam
04 Boolean Logic & Conditionals Lab To-Dos Exam To-Dos / Exam
05 Loops, Accumulators & Tracing Lab To-Dos Exam To-Dos / Exam
06 Functions, Scope & Modularity Lab To-Dos Exam To-Dos / Exam

D.3.2 Part II: Core Data Structures, Algorithms & Defensive Programming (Chapters 7–11)

Ch Chapter Focus Walkthrough To-Dos Exam Solutions
07 Lists, Slicing & Aliasing Lab To-Dos Exam To-Dos / Exam
08 Tuples, Sets & Dictionaries Lab To-Dos Exam To-Dos / Exam
09 File I/O, CSV & JSON Lab To-Dos Exam To-Dos / Exam
10 Exceptions, Testing & Debug Lab To-Dos Exam To-Dos / Exam
11 Algorithms & Big-\(O\) Complexity Lab To-Dos Exam To-Dos / Exam

D.3.3 Part III: Software Engineering for Data Scientists (Chapters 12–15)

Ch Chapter Focus Walkthrough To-Dos Exam Solutions
12 OOP for Data Scientists & ML Lab To-Dos Exam To-Dos / Exam
13 Jupyter & Google Colab Eng. Lab To-Dos Exam To-Dos / Exam
14 VS Code, Venvs & Packages Lab To-Dos Exam To-Dos / Exam
15 Git, Clean Code & Type Hints Lab To-Dos Exam To-Dos / Exam

D.3.4 Part IV: Mathematical Computing, Data Wrangling & Statistical Foundations (Chapters 16–20)

Ch Chapter Focus Walkthrough To-Dos Exam Solutions
16 NumPy & Vectorized LinAlg Lab To-Dos Exam To-Dos / Exam
17 Pandas Foundations & CoW Lab To-Dos Exam To-Dos / Exam
18 Survey Wrangling & Joins Lab To-Dos Exam To-Dos / Exam
19 Publication-Ready Figures Lab To-Dos Exam To-Dos / Exam
20 Biostatistics & Inference Lab To-Dos Exam To-Dos / Exam

D.3.5 Part V: Classical Machine Learning — Scratch Math & Scikit-Learn (Chapters 21–26)

Ch Chapter Focus Walkthrough To-Dos Exam Solutions
21 ML Paradigm & Data Leakage Lab To-Dos Exam To-Dos / Exam
22 Linear, Ridge, Lasso & ENet Lab To-Dos Exam To-Dos / Exam
23 Classification & Calibration Lab To-Dos Exam To-Dos / Exam
24 Trees, Ensembles & SHAP Lab To-Dos Exam To-Dos / Exam
25 Clustering & PCA (Unsup.) Lab To-Dos Exam To-Dos / Exam
26 Pipelines & Nested CV Lab To-Dos Exam To-Dos / Exam

D.3.6 Part VI: Deep Learning — NumPy Backprop to PyTorch, CNNs & Transformers (Chapters 27–32)

Ch Chapter Focus Walkthrough To-Dos Exam Solutions
27 Neural Nets from Scratch Lab To-Dos Exam To-Dos / Exam
28 PyTorch Tensors & Autograd Lab To-Dos Exam To-Dos / Exam
29 Training Dynamics & Reg. Lab To-Dos Exam To-Dos / Exam
30 CNNs & Medical Imaging Lab To-Dos Exam To-Dos / Exam
31 RNNs, LSTMs, GRUs & Series Lab To-Dos Exam To-Dos / Exam
32 Attention, Transformers & LoRA Lab To-Dos Exam To-Dos / Exam

D.3.7 Part VII: Rigorous Experiments, Fairness, Deployment & Capstone Paper (Chapters 33–36)

Ch Chapter Focus Walkthrough To-Dos Exam Solutions
33 Reproducible Exp. & Ablation Lab To-Dos Exam To-Dos / Exam
34 Error Analysis, Fairness & Cal. Lab To-Dos Exam To-Dos / Exam
35 Packaging & Deployment Lab To-Dos Exam To-Dos / Exam
36 Flagship Research Capstone Lab To-Dos Exam To-Dos / Exam