I'm working with the python markdown package in Jupyter, and I can't find a way to in line evaluate variables when using them in markdown cells.
For example, my code cell would contain:
a = 1
b = 2
And my markdown cell using python markdown should be:
$\frac{{{a}}{{{b}}$
to produce
Is there a way to evaluate "a" and "b" so that I can put them into the LaTeX markdown cell? I'd like to use Jupyter notebooks to do step by step calculations for reports, so it's critical that I can substitute in variable values in the process of writing a notebook to pdf or a .tex file.
I've explored pylatex, but this also doesn't seem to have a math example using fractions (only classes for Matrices and Vectors).
