oh look... I finally figured out how to do #python inline variable substitution in #Quarto. Threw me for a bit, tbh. Instead of calling py from the text we render the text in py:
@Cmastication the docs use the display function too. I wonder why... 🤔
https://quarto.org/docs/computations/execution-options.html#inline-code
Quarto - Execution Options

There are a wide variety of options available for customizing output from executed code. All of these options can be specified either globally (in the document front-matter) or per code-block.