Is it possible to generate scratch notebooks programmatically

I have a number of small pieces of javascript, and I want users to be able to click to play and experiment with them in Observable notebooks. I would like a different (possibly scratch) notebook for each snippet, since there are too many of them to put all into one notebook. Is there any way to programmatically generate a scratch notebook? Possibly via a long URL param?


That’s a cool idea! I think jsFiddle provides something similar, to inject starting content with a URL. Currently, it’s not possible to generate notebooks or programmatically edit them.

1 Like