(Nov-11-2019, 07:21 AM)Scott Wrote: I am trying to run this in jupyter notebookThat's the problem,
argv
is a way to get arguments from command line passed to the script.So i think you use Windows then it would be cmd or cmder as i use.
C:\code λ python argv_test.py a b c What program do you use? cmder The script is called: argv_test.py Your first variable is: a Your second variable is: b cmder Your third variable is: c
argv is the simplest way,but have limitation if writing more than simple stuff.
argparse is in standard library,i like Click if writing more than simple stuff for use from command line.