Public
Edited
Mar 17, 2023
5 forks
6 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
x = Math.random()
Insert cell
Math.sqrt(x)
Insert cell
Insert cell
d3.group(olympians, d => d.sport)
Insert cell
Insert cell
Insert cell
Insert cell
viewof maxVal = Inputs.range([0, 100], {label: "Sum up to", step: 1})
Insert cell
total = {
let sum = 0;
for (let i = 1; i <= maxVal; i += 1) {
sum += i;
}

return sum;
}
Insert cell
Insert cell
function sumNums(max) {
let sum = 0;
for (let i = 1; i <= max; i += 1) {
sum += i;
}

return sum;
}
Insert cell
Insert cell
total2 = sumNums(maxVal)
Insert cell
Insert cell
Insert cell
obj = ({a: 1, b: 2})
Insert cell
Insert cell
function objReturn() {
return {a: 1, b: 2}
}
Insert cell
obj2 = objReturn()
Insert cell
Insert cell
Insert cell
lion = FileAttachment("pexels-charl-durand-6436445-cropped.jpeg").image({width: 500})
Insert cell
Insert cell
Insert cell
${await FileAttachment("pexels-charl-durand-6436445-cropped.jpeg").image({width: 250})}
Insert cell
Insert cell
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