I stored the following simple Python script in /usr/lib/libreoffice/share/Scripts/python/pythonSamples :
def newsum(a, b):
…return a + b
What should I do to make this work as a user-defined-function in Libre Office so calling =newsum(5, 7) would simply return 12?
I have been struggling with this for a while, so any help is highly appreciated!
My configuration is:
Libre Office 3.6 on Ubuntu 12.10; Python plug-in has been loaded correctly [Tools → Macros → Organize Macros → Python works fine].