{
 "name": "tutorial-cs17-notebook-to-page",
 "title": "Tutorial CS-17: From a notebook to a page an athlete can open",
 "description": "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.",
 "homepage": "https://apopt.com/data/tutorials/cs17-notebook-to-page/",
 "licenses": [
  {
   "name": "CC BY 4.0",
   "path": "https://creativecommons.org/licenses/by/4.0/"
  }
 ],
 "created": "2026-12-03",
 "keywords": [
  "tutorial",
  "case study",
  "app",
  "JavaScript",
  "testing",
  "running",
  "force",
  "deployment"
 ],
 "resources": [
  {
   "name": "clean-cases.csv",
   "path": "clean/cases.csv",
   "url": "https://apopt.com/data/tutorials/cs17-notebook-to-page/clean/cases.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 400,
   "hash": "sha256:03a1145385294f2c7e4480548abc5186c5a8c0d17acc2284d1b3793ed853739a",
   "description": "Cleaned copy written by the tutorial",
   "rows": 8,
   "schema": {
    "fields": [
     {
      "name": "case",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "contact_s",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "flight_s",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "want",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "msg",
      "type": "string",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "clean-foot_plants.csv",
   "path": "clean/foot_plants.csv",
   "url": "https://apopt.com/data/tutorials/cs17-notebook-to-page/clean/foot_plants.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 2287,
   "hash": "sha256:b0e995672362370d11d3517a5ee1c90e6fe740c8a69a83a9ffde5bf7f8a144f6",
   "description": "Cleaned copy written by the tutorial",
   "rows": 44,
   "schema": {
    "fields": [
     {
      "name": "side",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "first",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "last",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "contact_s",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "flight_s",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "t_s",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "clean-force_js_cases.csv",
   "path": "clean/force_js_cases.csv",
   "url": "https://apopt.com/data/tutorials/cs17-notebook-to-page/clean/force_js_cases.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 525,
   "hash": "sha256:75de2060c395eff93f2c281f9536767941175afe715a580356bca49405c25f19",
   "description": "Cleaned copy written by the tutorial",
   "rows": 8,
   "schema": {
    "fields": [
     {
      "name": "case",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "js_value",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "js_message",
      "type": "string",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "clean-force_js_plants.csv",
   "path": "clean/force_js_plants.csv",
   "url": "https://apopt.com/data/tutorials/cs17-notebook-to-page/clean/force_js_plants.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 1150,
   "hash": "sha256:cefa5853bbbfac5a0e694c352aeff45378fb321e4ffdfe15cb8923fa629b0d69",
   "description": "Cleaned copy written by the tutorial",
   "rows": 44,
   "schema": {
    "fields": [
     {
      "name": "first",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "js_value",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "js_message",
      "type": "string",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  },
  {
   "name": "expected-force.mjs",
   "path": "expected/force.mjs",
   "url": "https://apopt.com/data/tutorials/cs17-notebook-to-page/expected/force.mjs",
   "format": "mjs",
   "mediatype": "application/octet-stream",
   "bytes": 603,
   "hash": "sha256:4ffb9cf4852b94f3dd8a5341b0271d1044de174cb15ea2dd0c1db6de813776e9",
   "description": "Output a correct run produces (compare with yours)"
  },
  {
   "name": "expected-printed-output.txt",
   "path": "expected/printed-output.txt",
   "url": "https://apopt.com/data/tutorials/cs17-notebook-to-page/expected/printed-output.txt",
   "format": "text",
   "mediatype": "text/plain",
   "bytes": 1713,
   "hash": "sha256:e2cd31ace1fa624bd825c22a63c3fd1d5fd05a341fe87709ecacaf90b6e02e60",
   "description": "Everything the tutorial prints, cell by cell"
  },
  {
   "name": "expected-run_force.mjs",
   "path": "expected/run_force.mjs",
   "url": "https://apopt.com/data/tutorials/cs17-notebook-to-page/expected/run_force.mjs",
   "format": "mjs",
   "mediatype": "application/octet-stream",
   "bytes": 867,
   "hash": "sha256:a386fab6848148d63152e9d6434b67174db8d18ab26ce59d2c09ff071da6d9b6",
   "description": "Output a correct run produces (compare with yours)"
  },
  {
   "name": "raw-form1_ankles.csv",
   "path": "raw/form1_ankles.csv",
   "url": "https://apopt.com/data/tutorials/cs17-notebook-to-page/raw/form1_ankles.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 25519,
   "hash": "sha256:a97ce6f8cb16597ab09a2633647a3224d6d228648da9a1622c96eeb42eecd865",
   "description": "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)",
   "rows": 464,
   "schema": {
    "fields": [
     {
      "name": "frame",
      "type": "number",
      "unit": "count",
      "description": "frame number from 0"
     },
     {
      "name": "t",
      "type": "number",
      "unit": "s",
      "description": "time in the clip"
     },
     {
      "name": "l_ankle_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "l_ankle_c",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_x",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_y",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "r_ankle_c",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  }
 ],
 "sources": [
  {
   "title": "Data-Driven Athletics book example data, Chapter 9 (keypoints from the course example clip form1_30fps.mp4)"
  }
 ]
}
