title: Is it possible to show `print` output as LaTeX in jupyter notebook?
body: <p>I was writing a very simple script to count ellipsoid area and volume and some other things. I was presenting my output printing it out like this:</p>
  <pre><code>print('Dims: {}x{}m\nArea: {}m^2\nVolume: {}m^3'.format(a, round(b,2), P, V))
  </code></pre>
  <p>What, of course, gave this output (with sample data):</p>
  <pre><code>Dims: 13.49x2.25m
  Area: 302.99m^2
  Volume: 90.92m^3
  </code></pre>
  <p>As I wrote earlier, I am using jupyter notebook, so I can use <code>$</code> operators in <b>markdown</b> cells to create LaTeX formulas.</p>
  <p>My question is, is it possible to generate output <strong>using Python code</strong> in a way that it will be understood as LaTeX formula and printed in such a way, that:</p>
  <p><a href="https://i.stack.imgur.com/f7qJu.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/f7qJu.gif" alt="Latex_example" /></a></p>
  <p>Thanks for all replies.</p>