How to Execute a Notebook Within a Notebook: Is It Possible and How?

14 Replies, 915 Views

Oh man, I’ve been down this rabbit hole before! Executing a notebook within a notebook is totally possible, and `papermill` is your best bet. It’s super flexible and lets you pass parameters between notebooks, which is awesome for automation.

Another tool worth checking out is `ploomber`. It’s more of a pipeline tool, but it’s great for managing notebook workflows.

If you’re feeling adventurous, you could also try `jupyter_client` to programmatically run notebooks. It’s a bit more involved, but it gives you full control over the execution process.

Good luck, and let us know how it goes!

Messages In This Thread



Users browsing this thread: 1 Guest(s)