Automating notebooks
Gemini Notebook now has an official API, though limited and in preview
It lets other programs create notebooks and add sources to them, but only with personal accounts. An unofficial code library does more, although it may stop working without warning.