getting the value of Python variable from a markdown text
How can I obtain the value of Python variable from markdown? I'd like to write both problem and a computed solution using markdown. The solution is obtained from Python script. Therefore, I'd to access Python variable from markdown.
Could you be more precise about your use case ? Which Sage interfacedo you use ? Is the markdown in a cell or in a separate file ? What is witten in you markdown ? ...
I edited the question. Hope it is clearer.
Markdown is not a programming language, and it does not know how to handle a variable. I am not sure about your exact request. Do you want a similar feature than sagetex but with markdown instead of LaTeX ? Perhaps could you find good ideas from sagetex source code.