Support for the use and rendering of LaTeX in docstrings #7329
Replies: 4 comments
-
@rchiodo, thoughts on this? I saw #2058 saying that back in 2021 we didn't have a way to support this. Has anything changed? |
Beta Was this translation helpful? Give feedback.
-
my mistake, i didnt mean to start a new issue for the same problem lol |
Beta Was this translation helpful? Give feedback.
-
We could do latex parsing as part of our restructured text parsing and then use one of the latex converters for markdown, but it'd be a lot of work. We'd need a lot of up votes to make it worthwhile. |
Beta Was this translation helpful? Give feedback.
-
Moving this issue to discussions as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently writing some relatively deep mathematical code, and I would like it if I could have some LaTeX notation rendered and embedded in the Python tooltips; I have tried writing an extension to render LaTeX in Python VSC, but I have determined it to be near impossible to embed it in the tooltips properly, and regardless, it would be much appreciated by me and I would think many others if LaTeX support was already built in. Not only would this serve to make me happy, because, of course, my happiness is certainly of the highest priority, but it would greatly offer science/math-heavy codebases the option to use more mathematically readable notation.
I have zero idea how it could be accomplished natively, the way I tried to render LaTeX with my extension was by using CodeCogs, but, seeing as VSC tooltips already supports Markdown, however, one way you might go about it is through MathJax or KaTeX.
I have no idea though, I'm not much of a super technical programmer as of right now and I'm merely only writing a suggestion, and while I wish I could offer some practical point to jump off from to help create my request, I am simply peanut-brained.
Beta Was this translation helpful? Give feedback.
All reactions