Hey,
I have some data analytics and viz for a client that I’d like to embed into one of our (html-based) presentations. However I can’t get the ‘embed code’ without publishing the full notebook, which is ofc not an option ^^’.
You could just “share” the notebook rather than publish it. In this case, the notebook is still public but only to those who have the link.
You can download the notebook and then embed from your local copy. This is a bit more work but generates code that runs completely independently of the observablehq.com.
That is false; I do this frequently. Of course, the cell you want to export must still be named.
The more important issue with this is that you should only do it with data you kinda want to hide but for which security isn’t of paramount importance. If you really want to keep your data private, you should use the second technique and send the whole file to your client.
You can also use an API key to embed private notebooks, though note that you should be careful not to reveal your API key as anyone with the key can read your private notebooks.