Published
Edited
Oct 19, 2018
1 star
Insert cell
Insert cell
url = "https://www.lcg.ufrj.br/~bfcosta/test2.js"
Insert cell
m = require(url).catch(() => {
const m = window.Module;
if (m.onRuntimeInitialized) return m; // Already initialized.
return new Promise(resolve => m.onRuntimeInitialized = () => resolve(m));
})
Insert cell
xpto = m.cwrap("sqrt_int", "number", ["number"])
Insert cell
xpto(90)
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