d2l-ai / d2l-book

Books with Jupyter notebooks

Home Page:https://book.d2l.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

Screen Shot 2022-08-02 at 9 41 04 PM

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:

Related discussions:

https://github.com/aaren/notedown/pull/96/files
aaren/notedown#95
jupyter/nbconvert#1369