I have a Python script that is being executed through a Jupyter Notebook running on VScode. I am running it using the run magic command. The script needs some NumPy arrays and strings as inputs, these arrays are stored as Jupiter variables. I though that using args = sys.argv was enough, but when debugging I realised that the args inside the script are actually the strings passed as inputs and not the arrays stored under those names. For instance in
%run myScript string1 string2 NumpyArray1
the variable inside the script is the string "NumpyArray1" and not the array stored with the name "NumpyArray1" in the Jupyter:variables of the notebook. 'NumpyArray1' is a 2D matrix (432x532)
Can someone explain to me how to pass an array as input to the script?
Thanks in advance!