Notebook markdown in code cell not interpreting formulas

I run code in a code cell that creates markdown in the “data” section using IPython.display.display, with embedded latex, e.g. $E=mc^2$.
image
This has suddenly stopped being rendered by Jupyterlab. However, the same ipynb file is interpreted fine in VSCode.
This destroys the utility of an important part of my workflow, help!

This is with 4.1.1. 4.0.8 is OK

1 Like

This was reported as an issue here at ’ Inline latex not showing correctly within markdown when using Ipython.display’ two days ago and mentioned in a Triage meeting. And so I think you can count on it being fixed soon so it won’t destroy that step in your workflow going forward.

Thanks, waiting for an update that mentions fixing this.
On a very related topic:
I create markdown headings with code in a cell, which show up nicely in the TOC. But the cell collapse mechanism is not enabled for these, and in fact, setting “Synchronize collapse state” to true disables even seeing it. Would this be a feasible request?

You’d probably want to file an issue in JupyterLab and see what they say. I know there are issues of accessibility and speed that have to be balanced. You can see some of those concerns raised here in a different request.