getting the value of Python variable from a markdown text

asked 2016-10-02 21:08:05 -0500

wannik gravatar image

updated 2016-10-03 19:06:20 -0500

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.

edit retag flag offensive close merge delete

Comments

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 ? ...

tmonteil gravatar imagetmonteil ( 2016-10-03 05:01:10 -0500 )edit

I edited the question. Hope it is clearer.

wannik gravatar imagewannik ( 2016-10-03 19:07:26 -0500 )edit

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.

tmonteil gravatar imagetmonteil ( 2016-10-03 20:09:17 -0500 )edit