I would like to call a python script, which has one function and this function expects one argument. Could You please advice how to call this python script from Julia terminal with the argument from Julia environment.
I have tried pyimport, py"""run code""", exec, but unfortunately I have not found the solution yet.
Example:
Let's assume I have a file my_test.py, which I want to run from Julia.
my_test.py contains only one function and execution presented below:
def print_one_number(my_number):
print(my_number)
return my_number
print_one_number(my_number)
In Julia I have a variable my_number_to_print.
Now I want to run .py script from Julia terminal with the argument my_number_to_print defined in Julia environment. How can I do it?
Thank You!
P.S. If we don't need to "transfer" any arguments from Julia to .py script the below works well: py"""exec(open("my_simple_test.py").read())"""