<div class="gmail_quote">On 8 March 2012 18:39, reckoner <span dir="ltr"><<a href="mailto:reckoner@gmail.com">reckoner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am writing some documentation using Sphinx, where it is possible,<br>
using the correct extensions, to have matplotlib automatically render<br>
plots in the HTML document. Is there something similar with IPython<br>
Notebook? In other words, can I have an IPython Notebook rendered live<br>
when the documentation is generated and then have the resulting HTML<br>
documents show the IPython Notebook results? </blockquote><div><br>IPython directive sounds like what you're looking for: <a href="http://matplotlib.sourceforge.net/sampledoc/ipython_directive.html">http://matplotlib.sourceforge.net/sampledoc/ipython_directive.html</a><br>
<br>In brief, it's a Sphinx extension which lets you use blocks of IPython code, and runs them as it builds the docs, so the final result includes the output as well.<br><br>Thomas<br></div></div>