0

I have been trying to use a defined variable as int value for argument.

Sample Code: batch_size = 8 !python train.py --batch_size $batch_size

I have used the same code on Colab without any problem. I am not sure why the code doesn't work on Paperspace.

Many thanks.

Have tried these methods below but with no luck. How to pass variables in a shell script as arguments? Run a python file with arguments in Colab IPython notebook: using quotes(') and dollar($) to pass string variable as argument to python script in command-line(!) | eg: abc.py -arg1 '$var1'

0 Answers0