title: Emacs preview-latex to format python comments and docstrings
body: <p>One of my favorite features of Emacs is the preview-latex package: it renders LaTeX equations in LaTeX documents as an inline graphic. Like this:</p>
  
  <p><img src="https://i.imgur.com/POXzM.png" alt="preview-latex screenshot"></p>
  
  <p>I'd like similar functionality in Emacs for Python comments and function docstrings. My docstrings have a lot of math in them:</p>
  
  <pre><code>def proj_levenberg(x,y,wsqrt,A):
      """
      Finds a homography between two sets of 2d points.
  
      Specifically, approximately minimize the weighted image plane
      error
  
         min_A  sum_{X,y,w}  w  ||(A_12 x_) /  (A_3 x_)  -  y||^2
  
      where x_=[x;1], A_12 are the first two rows of A and A_3 is the
      third row of A.
      ...
  </code></pre>
  
  <p>I'd like to write these in LaTex so that I when I browse my code, I can see rendered docstrings and comments.</p>
  
  <p>Is there a way to do this or do I have to do surgergy on preview-latex?</p>