Display an astropy Quantity within a LaTeX string
<p>I'm looking for a way to render <code>astropy</code> variables inside LaTeX strings within an IPython notebook. For example, given a simple premise,</p>

<pre><code>from astropy.constants import c
import astropy.units as u
from astropy import log
</code></pre>

<p>the speed of light is beautifully rendered by default as:</p>

<p><a href="https://i.stack.imgur.com/8TUnh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8TUnh.png" alt="latex-rendering"></a></p>

<p>by simply typing it in the ipython prompt. Now, what if I would like to embed this in a string? How to hop on the same rendering train already used by astropy to print an example string like <code>'Speed limit: {}'.format(c)</code>?</p>

<p>Everything I've tried so far, including variations of LaTeX-formatted strings, only displays an ASCII string as an output:
<a href="https://i.stack.imgur.com/wyLtI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wyLtI.png" alt="ascii-rendering"></a></p>