Closed barathvb closed 7 months ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
I can reproduce this. It sometimes works, sometimes does not. The problem stems from this line:
Namely, the fact that the output widget may not be yet attached when rendering, thus the typesetting does not proceed.
This works fine in 4.0.12 but fails as early as v4.1.0a1. I do not immediately see which PR introduced this issue.
Ok, looks like a side effect of https://github.com/jupyterlab/jupyterlab/pull/14102.
It is not because this.isAttached
is false - it was false in 4.0 too. It is because when onAfterAttach
is called:
The node output is still not populated.
To avoid jitter we might want to make createRenderedMimetype
await on the rendering promise, but this is non trivial - we would need to implement a queue to ensure outputs are added in the correct order.
Description
When programmatically displaying markdown using IPython.display, inline latex is not being rendered correctly. I notice this behavior only in the latest 4.1.x versions. The 4.0.x versions of JupyterLab is correctly displaying inline latex within markdown.
Here are two screenshots of the same notebook. One using 4.1.1 and the other 4.0.12
Reproduce
Install 4.0.12 and run any latex inline with markdown and you will it working. Doing the same thing with 4.1.1 is producing the issue
Expected behavior
The inline latex to be displayed correctly when using Markdown in IPython.display
Context
Troubleshoot Output
Command Line Output
Browser Output