Published
Edited
Jul 13, 2021
Importers
2 stars
Insert cell
# Utilities
A few handy functions to use across notebooks
Insert cell
displayCaution("<strong>hi</strong>")
Insert cell
displayCaution = function (text = "Caution: Work in Progress!") {
const styles = `
background-color:#fcbf5185;
padding: 20px;
border-radius:5px;
text-align:center;
`;
const caution = html`<div style="${styles}">
${text}
</div>`;
return html`${caution}`;
}
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