jupyterlab/jupyterlab
在 GitHub 查看Switching to markdown preview is slow; the scroll position gets lost
Open
#13,678 建立於 2022年12月29日
bughelp wantedpkg:markdownviewertag:Performance
描述
Description
Switching tabs to markdown viewer is slow. It takes ~11 partially presented frames and renderMarkdown gets called twice.
Reproduce
- Open JupyterLab README.md with right click: "Open With" → "Markdown Preview"
- Open a new launcher
- Switch back and forth
- See that the markdown tab contents flickers


For scroll position not being preserved see:

Expected behavior
- We should not need to invalidate the rendered markdown when switching back and forth and definitely we should not call
renderMarkdowntwice. - The scroll position should be preserved.
Context
- JupyterLab version: 4.0.0a31 and 3.x