getting the value of Python variable from a markdown text

asked 2016-10-03 04:08:05 +0200

wannik gravatar image

updated 2016-10-04 02:06:20 +0200

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


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 12:01:10 +0200 )edit

I edited the question. Hope it is clearer.

wannik gravatar imagewannik ( 2016-10-04 02:07:26 +0200 )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-04 03:09:17 +0200 )edit