Hi,
I tried to follow
https://manual.calibre-ebook.com/develop.html.
But at some point I failed to test the recipe from the ide. Using the ebook-convert command is a pain. Thank you for the comments "Why don't you use print statements". It would be nice to have an answer to the original question for those who do not want to use print statements.
Bests,
Daniel