# Parameterizing Multiple Notebooks

**URL:** <https://discourse.jupyter.org/t/parameterizing-multiple-notebooks/8678>\
**Category:** Notebook\
**Tags:** help-wanted\
**Created:** [April 7, 2021, 11:49pm UTC](https://discourse.jupyter.org/t/parameterizing-multiple-notebooks/8678 "2021-04-07T23:49:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VasuBhog](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@VasuBhog](https://discourse.jupyter.org/u/VasuBhog)\
**Post date:** [April 7, 2021, 11:49pm UTC](https://discourse.jupyter.org/t/parameterizing-multiple-notebooks/8678/1 "2021-04-07T23:49:08Z")

</div>

I’m trying to see if there is a community solution regarding parameterizing multiple notebooks or examples of setting parameters in a folder / high-level context that is then passed to multiple notebooks.

Any suggestions would be appreciated.

---

<div class="post-metadata">

**Author:** ![edublancas](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@edublancas](https://discourse.jupyter.org/u/edublancas)\
**Post date:** [April 8, 2021, 4:40am UTC](https://discourse.jupyter.org/t/parameterizing-multiple-notebooks/8678/2 "2021-04-08T04:40:03Z")

</div>

Hi,

I’m guessing you’re talking about papermill parameterization. You could use the Python API and parameterize several notebooks at the same time and then execute them. [See here](https://papermill.readthedocs.io/en/stable/usage-execute.html#execute-via-the-python-api).

Alternatively, you could use [Ploomber](https://github.com/ploomber/ploomber) (disclaimer: I’m the author), which builds on top of papermill for building multi-stage pipelines. your pipeline (a YAML file), would look like this:

```auto
source: notebook-a.ipynb
product: output-a.ipynb
params:
   my_param: a

source: notebook-b.ipynb
product: output-b.ipynb
params:
   my_param: a

```

Happy to provide more details about Ploomber if you’re interested!

---

<div class="post-metadata">

**Author:** ![VasuBhog](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@VasuBhog](https://discourse.jupyter.org/u/VasuBhog)\
**Post date:** [April 8, 2021, 9:39pm UTC](https://discourse.jupyter.org/t/parameterizing-multiple-notebooks/8678/3 "2021-04-08T21:39:11Z")

</div>

Gotcha this is interesting, have you considered how Jupyter Books config.yml could be used to pass in additional arguments? Making it more configurable within that project itself?

---

<div class="post-metadata">

**Author:** ![edublancas](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@edublancas](https://discourse.jupyter.org/u/edublancas)\
**Post date:** [April 9, 2021, 1:07pm UTC](https://discourse.jupyter.org/t/parameterizing-multiple-notebooks/8678/4 "2021-04-09T13:07:04Z")

</div>

I’m not familiar with jupyter books but I will take a look!
