I am trying to run a python script provided by a file from a Jupyter notebook. The script is running if I use the following command:
!python script.py --input_path /folder/input --output_path /folder/output/
But I need to pass those paths from a variable of my notebook. How can I do it?
Tried this but it didn't work:
input = "/folder/input"
output = "/folder/output/"
!python script.py --input_path input --output_path output
from Pass input parameters to script from jupyter notebook
No comments:
Post a Comment