Jupyter notebooks support equation numbering, but I am having difficulties generating equation numbers with LaTex used in Markdown notebooks in Juyter Lab. Is this feature available, and if it is, how can I make it work?
Asked
Active
Viewed 2,595 times
2 Answers
3
There's an open Jupyter Lab issue for this, with a workaround (https://github.com/jupyterlab/jupyterlab/issues/4039)
The workaround example (from eseglem):
$$
\begin{align}
g &= \int_a^b f(x)dx \label{eq1}\tag{1} \\
a &= b + c \label{eq2}\tag{2}
\end{align}
$$
See (\ref{eq1}) and (\ref{eq2})
Note: (as stated in the link) if you \ref{eq1}
from another cell, it will not work. It ends up (???)
.

dmon
- 1,344
- 1
- 14
- 29
-2
Nope, not available!
Jupyter contrib nbextensions are written for Notebooks, not Lab. You should port it over to Lab!

Lucas Durand
- 865
- 7
- 6
-
OK, I just got the answer on the Jupyter Lab forum that I should try [this](https://stackoverflow.com/a/42940005/704028). I did and it seems to work.. – tmaric Jul 17 '19 at 07:54
-
For Jupyter Lab? The JavaScript snippet might work, but doubtful on the package. I haven't tried though :) – Lucas Durand Jul 17 '19 at 13:08