Published
Edited
Jan 22, 2020
Importers
Insert cell
Insert cell
Insert cell
html`Try pasting here:<br/><textarea style="height: 70px"></textarea>`
Insert cell
Insert cell
copyableCode = srcCode => {
const button = Object.assign(
html`<button>Click to copy code</button> then copy it into a cell`,
{
onclick: () => copy(srcCode)
}
);
return html`<div>${button}<div style="max-height:100px;overflow-y:auto;border:solid 1px gray"> <pre><code>${srcCode}</pre></code></div></div>`;
}
Insert cell
copyableCode('asdf')
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