<div dir="ltr"><div>2015-03-23 19:06 GMT+00:00 Matthias Bussonnier <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span>:<br></div><div class="gmail_extra"><div class="gmail_quote"><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"><span><br>
</span>I guess you need to inherit the following block :<br>
<br>
<br>
((* block execute_result scoped *))<br>
    ((*- for type in output.data | filter_data_type -*))<br>
        ((*- if type in ['text/plain']*))<br>
            ((( add_prompt(output.data['text/plain'] | escape_latex, cell, 'Out', 'outcolor') )))<br>
        ((* else -*))<br>
\texttt{\color{outcolor}Out[{\color{outcolor}((( cell.execution_count )))}]:}((( super() )))<br>
        ((*- endif -*))<br>
    ((*- endfor -*))<br>
((* endblock execute_result *))<br>
<br>
<br>
form IPython/nbconvert/templates/latex/style_ipython.tplx<br>
<br>
And replace by what you wish.<br></blockquote><div><br></div><div><div><br></div><div>Thanks for the suggestion! That's precisely what I tried, but the problem seems to be that the call to super() somehow adds an additional Out[] prompt. I'll try to dig deeper into this when I get the time (and/or make a minimal example available so that it can easily be reproduced), but if anyone has any quick ideas I'm happy to hear them.</div><div><br></div><div>Cheers,</div><div>Max</div><div><br></div>P.S.: I noticed I forgot to include the link to the StackOverflow question I mentioned in my original email. Here it is:<div><br></div><div>   <a href="http://stackoverflow.com/questions/19524554/suppress-code-in-nbconvert-ipython" target="_blank">http://stackoverflow.com/questions/19524554/suppress-code-in-nbconvert-ipython</a><br></div></div><div><br></div></div></div></div>