# Tutorial CS-17: From a notebook to a page an athlete can open

Move the foot-plant force formula out of a notebook into a JavaScript function that refuses bad input, prove the Python and JavaScript versions agree on normal, missing and invalid cases and on 44 real foot plants, compare a file analysed afterwards with a stream read step by step, and specify the phone page.

Address: https://apopt.com/data/tutorials/cs17-notebook-to-page/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *From a notebook to a page an athlete can open* (https://apopt.com/course/tutorials/cs17-notebook-to-page/). `raw/` holds the inputs as the device or app wrote them; `clean/` holds the cleaned copies the tutorial writes; `expected/` holds what a correct run prints and saves, so you can check your own run.

## Files

| file | size | rows | description |
|---|---|---|---|
| [clean/cases.csv](https://apopt.com/data/tutorials/cs17-notebook-to-page/clean/cases.csv) | 400 B | 8 rows | Cleaned copy written by the tutorial |
| [clean/foot_plants.csv](https://apopt.com/data/tutorials/cs17-notebook-to-page/clean/foot_plants.csv) | 2.2 KB | 44 rows | Cleaned copy written by the tutorial |
| [clean/force_js_cases.csv](https://apopt.com/data/tutorials/cs17-notebook-to-page/clean/force_js_cases.csv) | 525 B | 8 rows | Cleaned copy written by the tutorial |
| [clean/force_js_plants.csv](https://apopt.com/data/tutorials/cs17-notebook-to-page/clean/force_js_plants.csv) | 1.1 KB | 44 rows | Cleaned copy written by the tutorial |
| [expected/force.mjs](https://apopt.com/data/tutorials/cs17-notebook-to-page/expected/force.mjs) | 603 B |  | Output a correct run produces (compare with yours) |
| [expected/printed-output.txt](https://apopt.com/data/tutorials/cs17-notebook-to-page/expected/printed-output.txt) | 1.7 KB |  | Everything the tutorial prints, cell by cell |
| [expected/run_force.mjs](https://apopt.com/data/tutorials/cs17-notebook-to-page/expected/run_force.mjs) | 867 B |  | Output a correct run produces (compare with yours) |
| [raw/form1_ankles.csv](https://apopt.com/data/tutorials/cs17-notebook-to-page/raw/form1_ankles.csv) | 24.9 KB | 464 rows | the two ankles' image positions and confidences, frame by frame, for 15.5 s of treadmill running filmed from behind at 30 frames per second (464 frames) |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Columns

| column | unit | meaning |
|---|---|---|
| frame | count | frame number from 0 |
| t | s | time in the clip |
| l_ankle_x, r_ankle_x | pixels from the left edge | horizontal ankle position |
| l_ankle_y, r_ankle_y | pixels from the top | vertical ankle position; larger is lower in the image |
| l_ankle_c, r_ankle_c | 0 to 1 | the pose model's confidence |

## Provenance

- Source: Data-Driven Athletics book example data, Chapter 9 (keypoints from the course example clip form1_30fps.mp4)
- Removed: nothing; the table holds ankle keypoints only, no image
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 12: Build Your Own Performance App](https://apopt.com/book/ch12-app/)
- Course: [Week 12 lesson](https://apopt.com/course/week/12/)
- Homework P24: [https://apopt.com/course/assess/p24/](https://apopt.com/course/assess/p24/)
- Homework P25: [https://apopt.com/course/assess/p25/](https://apopt.com/course/assess/p25/)

## How to cite

Tutorial CS-17: From a notebook to a page an athlete can open. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs17-notebook-to-page/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/cs17-notebook-to-page/raw/form1_ankles.csv")
```
