Add support for latex output in VSCode Jupyter notebook#136
Add support for latex output in VSCode Jupyter notebook#136rstanuwijaya wants to merge 5 commits intoWolframResearch:masterfrom
Conversation
|
This is awesome. A little caveat I saw though, Another question is how could we automatically add TeXForm to math equations to not have to write it on each cell. |
|
Saw that this PR was a bit stalled and wanted to weigh in that I tested the contents of the PR and it works great! Thought I'd leave a comment, because I think a lot of people would benefit from this QOL update. |
Background
While jupyterlab and jupyter notebook able to detect the latex output automatically, VSCode Jupyter could not do the same. VSCode Jupyter will only render latex equation if the output mimetype is
text/latex, whereas the current version only supportstext/htmlandtext/plainas a fallbackI added changes such that it will enable
text/latexmimetype output when the evaluation result allows. On my changes, I addedtoTeXmethod, which will wrap the result with$$to allow proper rendering from VSCode.Comparison