notebook.community
Edit and run
If you wanted to add your own parameter tag, you would go to the menu: View ➡️ Cell Toolbar ➡️ Tags
Let's take a look at the input notebook (simple_input.ipynb). This notebook has cells containing tags for the parameters.
simple_input.ipynb
See input notebook
We are going to use the Jupyter magic %%bash to simulate executing the notebook from the command line from a bash terminal.
%%bash
The command takes the form:
papermill <input notebook> <output notebook> -p <parameter name> <parameter value>
In [ ]: binder_dir = '..'
binder_dir = '..'
In [ ]: !papermill {binder_dir}/cli-simple/simple_input.ipynb {binder_dir}/cli-simple/simple_output.ipynb -p msg 'Hello'
!papermill {binder_dir}/cli-simple/simple_input.ipynb {binder_dir}/cli-simple/simple_output.ipynb -p msg 'Hello'
Let's take a look at the output notebook.
See output notebook