-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nb2xls==0.1.6 is not work with mistune==3.0.1 #8
Comments
Thanks for your interest! However, it doesn't quite make sense to update mistune to 3.0.1 in requirements - that would normally be installed anyway on a fresh installation of nb2xls. The problem is that the code of nb2xls is written assuming mistune version 0.8.4... So, if anything we would need to enforce that version rather than the latest version of mistune. Or, better would be to update the nb2xls code so that it works with the latest version of mistune. If taken a quick look at the latter possibility. Unfortunately, it seems the API of mistune has changed quite a bit and I'm not sure I'll have time to adjust the code to match it. If anyone else is able to do so, ideally so the pytests still pass, then I can accept a PR and publish a new version. |
Cool! Can I make some MR into your repository and release 0.1.7? |
I have updated requirements.txt
|
Thanks, but please see my last comment... It doesn't make sense to have mistune 3 without also changing the code to match! (Which it sounds like you have done through search/replace somehow in the installed package, but we need to do this actually in the GitHub code.) If you do want to work on this, please fork this repo and then submit a pull request as described here, or maybe you can find a detailed guide on the internet. We might end up needing to change the file sizes, but we would first need to prove the results are as desired - i.e. visually inspect that they make sense based on the source notebooks. |
Yes, you're right. Here is method list to implement in repo. |
Yes, it looks like mistune changed a bit between v0.8.4 and v2, and then again to v3. To be honest, I imagine that nb2xls hasn't really worked for most people over many years now... Hopefully you can make it produce the same output as before, but if not quite then as long as it looks similar enough... |
Problem
I have to use
mkdocs
to build pages in gitlab.When I execute
mkdocs serve -w docs
I failed with following error:After search I replaced in site-packages following strings in
/home/i_migal/.local/lib/python3.9/site-packages/nb2xls/mdrenderer.py
:Renderer
->BaseRenderer
escape_link
->escape_url
And it is worked!
Can you update
mistune
version inrequirements.txt
to3.0.1
or latest version and release new version ofnb2xls
?The text was updated successfully, but these errors were encountered: