Use existing framework such as [exmemo](https://github.com/kalekundert/exmemo) to implement features for notebook creation.