apopt.com

Data / tutorials / cs17-notebook-to-page

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

Tutorial

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.

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

FileSizeRowsWhat it is
clean/cases.csv400 B8 rowsCleaned copy written by the tutorial
clean/foot_plants.csv2.2 KB44 rowsCleaned copy written by the tutorial
clean/force_js_cases.csv525 B8 rowsCleaned copy written by the tutorial
clean/force_js_plants.csv1.1 KB44 rowsCleaned copy written by the tutorial
expected/force.mjs603 BOutput a correct run produces (compare with yours)
expected/printed-output.txt1.7 KBEverything the tutorial prints, cell by cell
expected/run_force.mjs867 BOutput a correct run produces (compare with yours)
raw/form1_ankles.csv24.9 KB464 rowsthe 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)

Every file has its own fixed address: copy a link and load it directly. preview.md shows the first rows of each table as text; datapackage.json lists columns, sizes and checksums.

Preview of raw/form1_ankles.csv

frametl_ankle_xl_ankle_yl_ankle_cr_ankle_xr_ankle_yr_ankle_c
00.0424.5261271.5090.932599.551563.6210.965
10.033387.0951353.9160.859586.6341597.6440.894
20.067405.8291339.5940.986577.7031619.7440.981
30.1405.8271340.7640.986577.8051618.8640.981
40.133401.8761392.5920.983594.4881641.2960.988
50.167432.0881390.2360.993604.8521541.2840.993
60.2442.6931502.3720.997625.7721475.0740.996
70.233447.5121524.9810.997628.4761389.2580.997

First 8 of 464 rows.

Data dictionary

ColumnUnitMeaning
framecountframe number from 0
tstime in the clip
l_ankle_x, r_ankle_xpixels from the left edgehorizontal ankle position
l_ankle_y, r_ankle_ypixels from the topvertical ankle position; larger is lower in the image
l_ankle_c, r_ankle_c0 to 1the pose model's confidence

Where it came from

  • 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: Published with the course under CC BY 4.0
  • Prepared with: dda/tutorials/build.py

Load it

import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/cs17-notebook-to-page/raw/form1_ankles.csv")
const text = await (await fetch("https://apopt.com/data/tutorials/cs17-notebook-to-page/raw/form1_ankles.csv")).text();

Or download load.py / load.js.

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/