What is the best way to add numbers to equations in a Markdown cell in a Jupyter Lab notebook?

I am having trouble adding numbers to equations in jupyter lab. I have installed the LaTex extension and I can use all the equation environments, but the numbers are missing. I tried installing the MathJax3 support, but then \dfrac dissapeared.

What is the best way to add numbers to equations in a Markdown cell in a Jupyter Lab notebook?

There is an official unofficial extension for this: https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/equation-numbering/readme.html

See also: https://stackoverflow.com/a/42940005/454773

3 Likes

Thanks, that did the trick! I thought that the nbextensions aren’t compatible with Jupyter Lab for some reason.

I wanted to revisit this question. I’m finding that the Javascript code is not working in my current installation of Jupyter-Lab (2.2.6), and the nbextensions don’t appear to work with it either. Does anyone have an up to date work around?