Public
Edited
Mar 17, 2023
Insert cell
Insert cell
Insert cell
mutable i = 0
Insert cell
Insert cell
loop = ()=>{
mutable i++
return mutable i
}
Insert cell
Insert cell
Insert cell
{
// this cell will be rerun from the beginning when referenced value changed,
// so it shouldn't use any block scope variable to hold important data
while(!paused){
yield loop()
}
yield i
}
Insert cell
Insert cell
Insert cell
i/1000 + 's'
Insert cell
deltaLoop = (delta)=>{
mutable i += delta
return mutable i
}
Insert cell
Insert cell
Insert cell
viewof array = Inputs.input([])
Insert cell
{
viewof array.value.push(1) //= //d3.range(d3.randomInt(0,10)())
viewof array.dispatchEvent(new Event('input', {bubbles: true}))
}
Insert cell
array
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