Skip to content
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

AttributeError in MathBlockParser #2201

Closed
kobina-adu opened this issue Dec 31, 2024 · 1 comment
Closed

AttributeError in MathBlockParser #2201

kobina-adu opened this issue Dec 31, 2024 · 1 comment

Comments

@kobina-adu
Copy link

I encountered an AttributeError when exporting my .ipynb to .html. The process involved running jupyter-nbconvert and due to a typo in the MathBlockParser class from the mistune package. The error message indicated that there is no attribute parse_axt_heading, and it suggested that it might be a typo for parsing parse_atx_heading.

Traceback:
AttributeError: 'MathBlockParser' object has no attribute 'parse_axt_heading'. Did you mean: 'parse_atx_heading'?

Steps to Reproduce:

  1. Install the latest version of jupyter (it comes along with the nbconvert and mistune packages).
  2. export your single notebook to an html file or run the jupyter-nbconvert on a jupyter notebook.

Temporal fix:
To resolve the issue temporarily, I duplicated the parse_atx_heading method in the MathBlockParser class and named the duplicate parse_axt_heading. Changing the name of the attribute affected other operations hence the duplication served right.

Environment:
Python version: 3.13
nbconvert version: [version]
mistune version: [version]
Operating system: Windows 10

Additional Information: Please let me know if you need any further information or if there is a better way to address this issue.

@bollwyvl
Copy link
Contributor

Dupe of #2198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants