Published
Edited
May 3, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
someJSString = "let x = 5; let y = 100;"
Insert cell
value = new Function(`${someJSString}; return x+ y;`)()
Insert cell
Insert cell
Insert cell
Insert cell
remoteURL = "https://gist.githubusercontent.com/triptych/3d8386edab8b7631bc792a000f856bb1/raw/2b3e441940d07941666eabab609f2976c101af7e/not_a_module.js"
Insert cell
remoteJS = fetch(remoteURL).then(r => r.text()).then(src => new Function(`${src}; return {x,y,z}`)());
Insert cell
Insert cell
Insert cell
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