downloading code from private notebooks? (non-shared)

Hi Observable! Congrats on launching teams!

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?

1 Like

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:

1 Like

Thank you Bryan!

1 Like

Yes ā€” thatā€™s currently a limitation that we need to fix. Itā€™s on the list!

2 Likes

Gentle bump, because I also just ran into this.

1 Like