I have read some forum posts referring to private notebooks, including Export Final Code. It seems that, in order to be able to download code for a notebook, it must first be shared (cannot be private). Is that correct?
Thatās indeed correct if you want to use Observableās built-in tools for this: the āDownload codeā menu item only shows up if the notebook is shared.
However, the other thread you linked contains scripts that let you download the āraw sourceā of notebooks, which is different (some of the script functionality is currently broken as Observable has changed the ātokenā handling recently). This can be done for both public and private notebooks, and once youāve gotten the raw source it is possible to convert it into code that you can embed elsewhere using the forms at the bottom of this notebook: