Listings are meant for source code, notebooks really are not, since they are meant to be formatted in a very specific way
On Thu, Aug 1, 2019 at 2:26 PM Zachary Bruick <zbru...@ucar.edu> wrote: > I can get python scripts to render great using the listings folder and > following the demo. However, whenever I add a notebook, whether new, > imported, or moved from other folders within the site, trying to build the > site returns this error: > > PythonAction Error > > Traceback (most recent call last): > > File > "/Users/zbruick/miniconda3/envs/nikola/lib/python3.7/site-packages/doit/action.py", > line 424, in execute > > returned_value = self.py_callable(*self.args, **kwargs) > > File > "/Users/zbruick/miniconda3/envs/nikola/lib/python3.7/site-packages/nikola/plugins/task/listings.py", > line 124, in render_listing > > code = lxml.html.tostring(ipynb_html.xpath('//*[@id="notebook"]')[0], > encoding='unicode') > > IndexError: list index out of range > > > ######################################## > > render_listings:output/listings/Untitled.ipynb.html <stdout>: > > > Any help on using listings with notebooks would be much appreciated! > > Thanks, > > Zach > > -- > You received this message because you are subscribed to the Google Groups > "nikola-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nikola-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nikola-discuss/7a5280d6-199d-4ad3-b219-9eeb531e8637%40googlegroups.com > <https://groups.google.com/d/msgid/nikola-discuss/7a5280d6-199d-4ad3-b219-9eeb531e8637%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/CALXDAfqM6xeDPhMW%3DsY9WkHBXb1yUf9FebGt_-sXqQYKow%3D%2BkQ%40mail.gmail.com.