Call a macro by python code

I want to know if there is a way to run a macro with a python comando

Hi, I want to know that too. Did you figure it out?

It’s not clear what kind of macro you are referring to. The script repository has a lot of examples of automating actions.

Hi,
I recorded a macro in 3D slicer using the Qttesting enable mode. I saved it as an xml file. I know how to play it from 3D slicer using the Play Macro button under Edit. But I was wondering if there is any python code or sentence that can be used to play the macro