Public
Edited
Nov 29, 2022
Insert cell
Insert cell
import {newProject,cellGen,stylesheet} from "@hazelfire/squiggle"
Insert cell
squiggle_test=newProject()
Insert cell
cell=cellGen(squiggle_test)
Insert cell
viewof define_x = cell(`x=(10 to 100) * (5 to 50)`)
Insert cell
use_x = cell(`x+1`,define_x)
Insert cell
half_life2Caparara = FileAttachment("half_life@2.caparara.json").json()
Insert cell
viewof half_life_caparara=cell(`half_life_caparara=SampleSet.fromList($half_life)`,undefined,{jsImports: {half_life: half_life2Caparara}})
Insert cell
cell(`mean(half_life_caparara)`,half_life_caparara)
Insert cell
cell(`half_life_caparara * x`,[half_life_caparara,define_x])
Insert cell
half_life_bs_samples = FileAttachment("half_life_bs.json").json()
Insert cell
viewof half_life_bs=cell(`half_life_bs=SampleSet.fromList($half_life_bs)`,undefined,{jsImports: {half_life_bs: half_life_bs_samples}})
Insert cell
viewof half_life=cell(`half_life = mx(half_life_caparara,half_life_bs)`,[half_life_caparara,half_life_bs])
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more