I do not known if nbsphinx-link supports python 2? If so, it can probably be solved using something like:
# Note: reprunicode is a compatibility hack for python 2. It has been removed
# from docutils in v0.21.
is_py2 = int(platform.python_version()) == 2
if is_py2:
path = nodes.reprunicode(path)
It seems that this line causes an error https://github.com/vidartf/nbsphinx-link/blob/f1682a8b5bfd884bfed7ef7dfaf0810c6ae8a543/nbsphinx_link/__init__.py#L192
because docutils removed
reprunicode
in v0.21.See the change in docutils here: https://github.com/live-clones/docutils/commit/d979a5dad7df1f97dfa306a4a3c53d4e45b0db22
I do not known if nbsphinx-link supports python 2? If so, it can probably be solved using something like:
and
If you agree, I open a PR.
Antoine