Downloading a notebook via api.observablehq.com (i.e. ‘https://api.observablehq.com/document/@gordonsmith/graphviz-c-graph-api’) has incorrect mode for “dot” cells.
For example:
{
id: 11,
value: "${sa.toDot()}",
pinned: true,
mode: "js",
data: null,
name: null,
}
Should be:
{
id: 11,
value: "${sa.toDot()}",
pinned: true,
mode: "dot",
data: null,
name: null,
}
Yup, the api.observablehq.com endpoints only handle 1.0 notebooks properly, and dot is a new cell mode. Proper export and programmatic fetching of 2.0 notebooks is still forthcoming.
Yep, in the near future we’ll offer the ability to download notebooks as HTML using the Notebook Kit file format, along with any attached files (and likely imported notebooks).
James King has an unofficial browser extension if you want to try it in the meantime: @jamesking.io on Bluesky
Would be great if you also supported a Notebook HTML upload as well… (Bonus marks if you exposed the download/upload via a private git server endpoint)