<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello all,<br><br>I have a notebook which fails to convert. I've already encountered the problem (see user list) a few weeks ago with another notebook. The message is the same:<br><br>johan$ ipython nbconvert Fit_wind.ipynb <br>[NbConvertApp] Using existing profile dir: u'/home/johan/.config/ipython/profile_default'<br>[NbConvertApp] Converting notebook Fit_wind.ipynb to html<br>[NbConvertApp] Support files will be in Fit_wind_files/<br>[NbConvertApp] Loaded template html_full.tpl<br>pandoc: option `--mathjax' requires an argument URL<br>Try pandoc --help for more information.<br>Traceback (most recent call last):<br>  File "/usr/local/bin/ipython", line 6, in <module><br>    start_ipython()<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/__init__.py", line 118, in start_ipython<br>    return launch_new_instance(argv=argv, **kwargs)<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/config/application.py", line 545, in launch_instance<br>    app.start()<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/terminal/ipapp.py", line 358, in start<br>    return self.subapp.start()<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/nbconvertapp.py", line 267, in start<br>    self.convert_notebooks()<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/nbconvertapp.py", line 300, in convert_notebooks<br>    output, resources = exporter.from_filename(notebook_filename, resources=resources)<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/exporter.py", line 289, in from_filename<br>    return self.from_notebook_node(nbformat.read(f, 'json'), resources=resources,**kw)<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/exporter.py", line 260, in from_notebook_node<br>    output = self.template.render(nb=nb_copy, resources=resources)<br>  File "/usr/local/lib/python2.7/dist-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py", line 894, in render<br>    return self.environment.handle_exception(exc_info, True)<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/../templates/html_full.tpl", line 1, in top-level template code<br>    {%- extends 'html_basic.tpl' -%}<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/../templates/html_basic.tpl", line 1, in top-level template code<br>    {%- extends 'display_priority.tpl' -%}<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/../templates/skeleton/display_priority.tpl", line 1, in top-level template code<br>    {%- extends 'null.tpl' -%}<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/../templates/skeleton/null.tpl", line 26, in top-level template code<br>    {%- block body -%}<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/../templates/html_full.tpl", line 62, in block "body"<br>    {{ super() }}<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/../templates/skeleton/null.tpl", line 29, in block "body"<br>    {%- block any_cell scoped -%}<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/../templates/skeleton/null.tpl", line 76, in block "any_cell"<br>    {%- block headingcell scoped-%}<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/exporters/../templates/html_basic.tpl", line 64, in block "headingcell"<br>    {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | strip_math_space | markdown2html | strip_files_prefix | add_anchor }}<br>  File "/usr/local/lib/python2.7/dist-packages/IPython/nbconvert/filters/strings.py", line 85, in add_anchor<br>    h = ElementTree.fromstring(py3compat.cast_bytes_py2(html, encoding='utf-8'))<br>  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1283, in XML<br>    return parser.close()<br>  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1636, in close<br>    self._raiseerror(v)<br>  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror<br>    raise err<br>ParseError: no element found: line 1, column 0<br><br>If you suspect this is an IPython bug, please report it at:<br>    https://github.com/ipython/ipython/issues<br>or send an email to the mailing list at ipython-dev@scipy.org<br><br>You can print a more detailed traceback right now with "%tb", or use "%debug"<br>to interactively debug it.<br><br>Extra-detailed tracebacks for bug-reporting purposes can be enabled via:<br>    c.Application.verbose_crash=True<br><br>Is this a bug or is there something wrong with my file or system? Notebook at: <a href="http://pastebin.com/FZu2j5xY" target="_blank">http://pastebin.com/FZu2j5xY</a><br><br>Kind regards,<br><br>Johan<br>                                         </div></body>
</html>