danielfrg / mkdocs-jupyter

Use Jupyter Notebook in mkdocs
https://mkdocs-jupyter.danielfrg.com
Apache License 2.0
362 stars 45 forks source link

'mermaid js' is undefined error for version 0.24.3+ #176

Open FBruzzesi opened 8 months ago

FBruzzesi commented 8 months ago

Hey there! This extension is incredibly useful.

Moving from version <=0.24.2 to any 0.24.3+ version, I started to receive the following error:

jinja2.exceptions.UndefinedError: 'mermaid_js' is undefined

when spinning off the server locally with mkdocs serve.

Python version 3.10.12 Other mkdocs related extensions:

library version
mkdocs 1.5.3
mkdocs-autorefs 0.5.0
mkdocs-material 9.4.5
mkdocs-material-extensions 1.2
mkdocstrings 0.23.0
mkdocstrings-python 1.7.3

Not sure what is the problem and if can be system related

emptymalei commented 8 months ago

I have the same problem. I am using 0.24.6.

Other packages used:

mkdocs-material = "^9.4.6"
mkdocs-autorefs = "^0.5.0"
mkdocstrings = "^0.23.0"
mkdocs-with-pdf = "^0.9.3"
mkdocs-git-authors-plugin = "^0.7.2"
mkdocs-bibtex = "^2.11.0"
mkdocs-jupyter = "<=0.24.2"
mkdocs-exclude-search = "^0.6.5"
davidknight-seequent commented 8 months ago

I had the same problem but after creating a clean virtualenv with Python 3.12.0 and installing my requirements again it all works fine.