<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 1:27 PM, PhilippJFR <span dir="ltr"><<a href="mailto:P.Rudiger@ed.ac.uk" target="_blank">P.Rudiger@ed.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Matthias Bussonnier wrote<br>
<span class="">> I've seen in particular that you are building docs as notebook.<br>
> We plan to do the same for IPython, any plan to make this<br>
> part more standalone / pip-installable ?<br>
> Or is it already ?<br>
<br>
</span>Hi Matthias,<br>
<br>
The notebook doc building is based on  Nathan Goldbaum's NotebookDirective<br>
<<a href="https://bitbucket.org/ngoldbaum/yt-samfork/src/601247197187c1814a073d3bca831bf4e6cd5db7/doc/extensions/notebook_sphinxext.py?at=yt" target="_blank">https://bitbucket.org/ngoldbaum/yt-samfork/src/601247197187c1814a073d3bca831bf4e6cd5db7/doc/extensions/notebook_sphinxext.py?at=yt</a>><br>
for Sphinx. You can look at our version  here<br>
<<a href="https://github.com/ioam/ioam-builder/blob/nbpublisher/nbbuild.py" target="_blank">https://github.com/ioam/ioam-builder/blob/nbpublisher/nbbuild.py</a>>  , but<br>
it's far from ready for distribution. The only real changes I made were to<br>
switch to the basic html template and change some the hackery that's<br>
required to clean up conflicting css and strip html tags so that it is<br>
suitable for Sphinx. Additionally, thanks to Jean-Luc it hooks into a<br>
testing system to capture our output, which allows us to dynamically<br>
generate data and display comparisons as unit tests.<br>
<br>
Presumably the part of the code that deals with cleaning up the nbconvert<br>
output for Sphinx should be reimplemented as a nbconvert Postprocessor for<br>
you to use. If you are also interested in our testing facilities, it would<br>
be great to integrate that more tightly with IPython. We have recently added<br>
an exporting system for notebooks, allowing you to save the data and display<br>
output for each cell, which can be used either for archival purposes or to<br>
set up test comparisons. If you're at all in interested in something like<br>
that it would be great to chat about it at some point.<br>
<br></blockquote><div><br></div><div>Hi Philipp</div><div><br></div><div>I put this up on github a while ago.  I'd love to get a PR for any changes you made.</div><div><br></div><div><a href="https://github.com/ngoldbaum/runnotebook">https://github.com/ngoldbaum/runnotebook</a><br></div><div><br></div><div>I'd really love it if you (or maybe one of the IPython devs if they're interested in this sort of thing) figured out how to use the jinja2 templates so I don't have to run silly regexes on the CSS.</div><div><br></div><div>-Nathan</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Philipp<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://python.6.x6.nabble.com/ANN-HoloViews-1-0-released-tp5089805p5089815.html" target="_blank">http://python.6.x6.nabble.com/ANN-HoloViews-1-0-released-tp5089805p5089815.html</a><br>
Sent from the IPython - Development mailing list archive at Nabble.com.<br>
<div class=""><div class="h5">_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br></div></div>