Kivy LaTeX Label
This is a simple package that provides a special LatexLabel class to display text containing equations with kivy. No LaTeX installation is required, the rendering is performed using matplotlib.
Installation
To use this widget, you can simply copy and paste the "kivy_latex_label" folder in your code and import the widget. A pip installation will possible in the future.
How to use it
You can use the LatexLabel as any other Label in kivy (although all options may not be available), your equations just need to be delimited by dollar symbols ($) like in any LaTeX document.
Here is a short demo with a python and kv files. To run it, the python should be pasted in a file called "demo.py" and the kv in "demo.kv".
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.core.window import Window
from kivy_latex_label import LatexLabel
class DemoApp(App, Widget):
def build(self):
Window.clearcolor = (1, 1, 1, 1)
if __name__ == "__main__":
DemoApp().run()
#:kivy 2.0.0
FloatLayout:
size_hint: (1,1)
LatexLabel:
pos_hint: {"top":1,"x":0.05}
size_hint:(0.9,1)
text: r"The SINDy method is a recently developed technique that leverages sparse regression to identify the governing equations from a given time series (Figure 1). We consider a system with state $\boldsymbol{x}(t)=\left[x_{1}(t), x_{2}(t), \ldots x_{d}(t)\right]^{\top} \in$ $\mathbb{R}^{d}$ governed by the differential equation: $\dot{\boldsymbol{x}}=\boldsymbol{f}(\boldsymbol{x})$."
color: (0,0,0,1)
text_size: root.size
valign: "top"
font_size: 20
Here is how it looks like:
Release files for kivy-latex-label 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kivy_latex_label-1.0.9.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kivy_latex_label-1.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / kivy_latex_label-1.0.9.tar.gz
| Download URL | kivy_latex_label-1.0.9.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dee45942f302657431aaf4f893fc1090847456e0268b55714c10a2ca68b9ea7e
|
|
BLAKE2b-256 checksum How to use checksums |
cfd390aa341349c502b33c225b359570726effda6319f54102ba0bfbca5b8258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2025.
Transparency logRelease files / kivy_latex_label-1.0.9-py3-none-any.whl
| Download URL | kivy_latex_label-1.0.9-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
296c34fae4186cee01927108302f42dc92da519d301f044a85b78ed7bfd53bef
|
|
BLAKE2b-256 checksum How to use checksums |
16f7bb1f46890c86202ab8e7269358dcd20a175913e3777a6a81f21af3fda183
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2025.
Transparency log