I'm trying to run a Bash script in a jupyter notebook. I have a list of arguments that I have computed in the notebook and stored in a python list, and I want to run the Bash script with each of the parameters once. What I am looking for is essentially the ability to use a for loop to run the script with each parameter.
I am familiar with the %%sh magic, but that does not allow me to use the python for loop inside the shell.
To summarize, looking for something like this:
parameter_list = [arg1, arg2,...argn]
for arg in parameter_list:
sh shell_script arg