title: What's the best way to do literate programming in Python on Windows?
body: <p>I've been playing with various ways of doing literate programming in Python.  I like <a href="http://www.cs.tufts.edu/~nr/noweb/" rel="noreferrer"><code>noweb</code></a>, but I have two main problems with it: first, it is hard to build on Windows, where I spend about half my development time; and second, it requires me to indent each chunk of code as it will be in the final program --- which I don't necessarily know when I write it.  I don't want to use Leo, because I'm very attached to Emacs.</p>
  
  <p>Is there a good literate programming tool that:</p>
  
  <ol>
  <li>Runs on Windows</li>
  <li>Allows me to set the indentation of the chunks when they're used, not when they're written</li>
  <li>Still lets me work in Emacs</li>
  </ol>
  
  <p>Thanks!</p>
  
  <hr>
  
  <p>Correction: <code>noweb</code> <em>does</em> allow me to indent later --- I misread the paper I found on it.  </p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>By default, <code>notangle</code> preserves whitespace and maintains indentation when expanding chunks.  It can therefore be used with languages like Miranda and Haskell, in which indentation is significant</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>That leaves me with only the "Runs on Windows" problem.</p>