Unexpected error while saving file: xxx display_priority.j2
astonzhang opened this issue · comments
Note that d2lbook
has two dependencies: nbconvert
and mu-notedown
. For nbconvert>=6.2.0 (nbconvert 6.0.0 and 6.1.0 have other issues when running jupyter notebook
), when using Jupyter Notebook to edit a markdown file (enabled by mu-notedown), saving a file throws the following error message:
In my locale, editing
~/miniconda3/envs/np3/lib/python3.9/site-packages/notedown/templates/markdown.tpl
or
~/miniconda3/envs/np3/lib/python3.8/site-packages/mu_notedown-2.0.3-py3.8.egg/notedown/templates/markdown.tpl
as https://github.com/aaren/notedown/pull/96/files resolves the issue.
Thus, the following changes are proposed:
- Edit https://github.com/mli/notedown/blob/master/setup.py#L19 as
'nbconvert>=6.2.0',
- Edit https://github.com/mli/notedown/blob/master/notedown/templates/markdown.tpl#L1 as
{% extends 'base/display_priority.j2' %}
- Upload an upgraded version of
mu-notedown
after bumping a version at https://github.com/mli/notedown/blob/master/setup.py#L10 - Remove https://github.com/d2l-ai/d2l-book/blob/master/setup.py#L11-L12 since both are required in
mu-notedown
Related discussions:
https://github.com/aaren/notedown/pull/96/files
aaren/notedown#95
jupyter/nbconvert#1369
Fixed in d2l-ai/notedown#3