All the cells in my notebook run fine until the very last cell, in which I have:
#| hide
from nbdev import nbdev_export
nbdev_export()
This produces
Traceback (most recent call last):
File ~/opt/anaconda3/envs/shazbot/lib/python3.8/site-packages/IPython/core/interactiveshell.py:3398 in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
Input In [45] in <cell line: 3>
nbdev_export()
File ~/opt/anaconda3/envs/shazbot/lib/python3.8/site-packages/fastcore/script.py:110 in _f
if not mod: return func(*args, **kwargs)
File ~/opt/anaconda3/envs/shazbot/lib/python3.8/site-packages/nbdev/doclinks.py:135 in nbdev_export
_build_modidx()
File ~/opt/anaconda3/envs/shazbot/lib/python3.8/site-packages/nbdev/doclinks.py:97 in _build_modidx
res['syms'].update(_get_modidx((dest.parent/file).resolve(), code_root, nbs_path=nbs_path))
File ~/opt/anaconda3/envs/shazbot/lib/python3.8/site-packages/nbdev/doclinks.py:75 in _get_modidx
for tree in ast.parse(cell.code).body:
File ~/opt/anaconda3/envs/shazbot/lib/python3.8/ast.py:47 in parse
return compile(source, filename, mode, flags,
File <unknown>:115
^
SyntaxError: unexpected EOF while parsing
Why is it complaining? The rest of the notebook is fine.
What is “File ”, and how can I trace the output…?
The command-line nbdev_export
utility gives the same error.
EDIT: tried uninstalling & resintalling nbdev
, to no effect.