I am trying to convert my observable notebook into a static html using observable notebook kit, as per the instructions in Observable Notebook Kit | Observable. I have followed the step to the word, but my html always turn out blank. Can someone help me with this? TIA
Can you provide a link to your notebook?
Here it its
It looks like there’s either a bug in your notebook or in Notebook Kit, not sure which.
BUT, in my opinion the docs for Notebook Kit aren’t great. So, let’s make sure we’re on the same page. Here’s what I did:
mkdir eg-notebook-kit
cd eg-notebook-kit
npm add @observablehq/notebook-kit
mkdir notes
npx notebooks download https://observablehq.com/d/c360c1a8d90db91e > notes/rainfall-reliability-3.html
npx notebooks preview --root notes
Now, visit http://localhost:5173/rainfall-reliability-3.html in your browser. You get a Vite error.
Same thing happens if you run npx notebooks build --root notes – notes/*.html - (except the error will appear in your terminal.)
So, there’s a crash and the error message isn’t informative. But, as of right now, there appears to be an error in your notebook: I see boundary_geojson is not definedunderneath the very first codeblock. I would fix that first.