If I have a python script, for example:
def hello():
return 'Hello World'
How can I call this python script in Google App Script? Or how can I create a custom function for spreadsheet which return this python function? Something like:
function callPythonFunction() {
const result = //hello function from python script
return result; // 'Hello World' from hello()
}
And if I use this in spreadsheet:
=callPythonFunction()
I get 'Hello World' in the cell.