Published
Edited
Nov 3, 2021
Importers
Insert cell
# Testing secrets
Insert cell
// secretsAvailable :: -> boolean
secretsAvailable = function () {
var result = true;

try {
Secret("");
} catch (e) {
result = !e.message.includes("private notebooks");
}

return result;
}
Insert cell
secretsAvailable()
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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