Closed fkuehlein closed 6 months ago
@fkuehlein I did not see your PR and I opened an issue yesterday #22
Do you think nbspinx_link supports python2 ? Or could we simply delete the problemtic rows as you did ?
Regards Antoine
@antoinecollet5 good point, according to the setup.py
Python 2.7 is actually supported. Therefore the option you proposed in #22 is the safe way to go for sure!
Would you like to just make a PR yourself? Then I can close this one.
Best, F
Ok, in that case, simply update this PR and link the issue in the PR description. Antoine
Why did you close it ?
because I think yours is the better solution and you would want to make a new PR. Could still reopen this and leave it to the repo owner to decide, maybe that makes sense indeed.
Well in the mean time I did another PR since you closed this one ^^^ahah
Indeed, what I proposed is probably the way to go. I was suggesting you to modify this PR instead of doing a new. Anyway, I did a new so you can close it again to avoid doing the job twice.
Antoine
haha yea I saw that, but only now understood what you were suggesting. anyway, I'll close it now ...:D
Hi,
I like to use nbsphinx-link for building my docs, but got an
AttributeError: module 'docutils.nodes' has no attribute 'reprunicode'
today. I realized thatnbsphinx-link/__init__.py::LinkedNotebookParser
usesdocutils.nodes.reprunicode
, which was removed as ofdocutils
v0.21, as being a 'Python 2 compatibility hack'.Indeed, just leaving it out will fix the bug, which is what I did in the below commit. Hope to make a useful contribution.
Cheers, F
Edit: See #22 for a better approach maintaining Python 2 compatibility.