A tangential question if any one can offer pointers.

I am interested to know if it possible to programmatically create a jupyter notebook, add and edit cells programmatically, ans also execute and capture the results of execution via API calls.

Any guides , documentation or examples of this?

I am looking to integrate this functionality with another component upstream that triggers cell creation and code execution.