<div dir="ltr">Hi Eric,<div><br></div><div>I don't think we have any out-of-the-box flags for this, but if I recall correctly, pygments does have line numbering support. So a bit of playing with the templates should easily do it.</div>
<div><br></div><div>You can find some nbconvert customization examples here:</div><div><br></div><div><a href="https://github.com/ipython/nbconvert-examples">https://github.com/ipython/nbconvert-examples</a><br></div><div>
<br></div><div>Best</div><div><br></div><div>f</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 20, 2013 at 4:05 PM, Eric Matthes <span dir="ltr"><<a href="mailto:ehmatthes@gmail.com" target="_blank">ehmatthes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I just realized you can use Ctrl-M L to turn line numbering on in a cell, but I notice that those numbers are not visible when I view a notebook through IPython Notebook Viewer. After I use nbconvert on a notebook with the numbers visible, the resulting html file does not have line numbers.<div>
<br></div><div>Is there a way to have the line numbers included in the html output when using nbconvert?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Eric</div></font></span></div>
<br>_______________________________________________<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Fernando Perez (@fperez_org; <a href="http://fperez.org" target="_blank">http://fperez.org</a>)<br>fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)<br>
fernando.perez-at-berkeley: contact me here for any direct mail<br>
</div>