For example, I have a Python module and a iPython module,
cmd.py
import sys
print sys.argv
test.ipynb
for i in range(5):
%run cmd.py i
When I run test.ipynb, it just print ['cmd.py', 'i'] multiple times. How can I pass the value of i instead of 'i' as a command line argument?
%run cmd.py $i?