Public
Edited
Apr 14, 2023
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
height_m = height_cm / 100
Insert cell
stride_m = height_m * 0.414
Insert cell
distance_m = stride_m * steps
Insert cell
speed_lookup = ({"Average (3 miles/hour)": ({speed: 3, MET: 3.5}), "Slow (2 miles/hour)": ({speed: 2, MET: 2.8}), "Fast (4 miles/hour)": ({speed: 4, MET: 5}) })
Insert cell
speed_mph = speed_lookup[speed].speed
Insert cell
speed_kph = speed_mph * 1.609
Insert cell
MET = speed_lookup[speed].MET
Insert cell
time_h = distance_m / (speed_kph * 1000)
Insert cell
time_m = time_h * 60
Insert cell
cal = time_m * MET * 3.5 * weight_kg / 200
Insert cell
import {viewof weight, viewof weight_unit, viewof height, viewof height_unit, weight_kg, height_cm} from "@andyreagan/bmr-calculator"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more