How to render(show rendered) mathematical formula in vscode's `hover` documents of python?
Asked Answered
A

1

7

I'm writing for a python function's documentation on vscode, and find it will be very convenient if the hover showing view of a function's docs can render the formula instead of raw string of stiff latex formula, such as the screen shoot: enter image description here

As far as I know, there is a solution on Pycharm, i.e., use "math::+formula" in docs, but it seems not work on vscode.

So, is there anyway to show formula in python's doc on vscode? Thanks in advance.

Amalee answered 14/8, 2022 at 4:1 Comment(0)
D
1

Unfortunately, there is no way to do it in vscode, and developers do not plan to support it.

Details

The github issue about that was opened in 2020 https://github.com/microsoft/python-language-server/issues/1880 And eventually close in new repository in 2022 https://github.com/microsoft/vscode/issues/168100 Developers say that they use very lightweight markdown renderer for this hovers, and to support latex they would need to switch to another one, which they don't plan to do.

Dunn answered 20/4, 2024 at 14:25 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.