Which doc in help.libreoffice deals with typing out Python Macros and associating with component/doc?

So I’d like to write a small Python Macro for my document that basically prints “hello world” but I can’t find the docs dealing with typing out the stuff. I can’t use Tools–>Macro–>Organize Macros

python locations
says Scripts are stored in the FIleSystem…

but python session
seems to indicate that to figure out the path you need to run a Subroutine in Basic, therefore I just added that to my documents Main and then invoked it, but I get an error
python macro

Is there some doc that I’ve missed and how can I finish this?

Hello,

You can use a text editor (I use Pluma in Ubuntu 20.02) and save the file with a .py extension. As to saving in MyMacros, see Introduction on this Wiki → Macros/Python Guide.

You may find this helpful in the near future → Python Guide - Sheets

thank you :slight_smile: