Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers.upgrade-tmp /venv /lib /python3.10 /site-packages /sympy /printing /gtk.py
| from sympy.printing.mathml import mathml | |
| from sympy.utilities.mathml import c2p | |
| import tempfile | |
| import subprocess | |
| def print_gtk(x, start_viewer=True): | |
| """Print to Gtkmathview, a gtk widget capable of rendering MathML. | |
| Needs libgtkmathview-bin""" | |
| with tempfile.NamedTemporaryFile('w') as file: | |
| file.write(c2p(mathml(x), simple=True)) | |
| file.flush() | |
| if start_viewer: | |
| subprocess.check_call(('mathmlviewer', file.name)) | |
Xet Storage Details
- Size:
- 466 Bytes
- Xet hash:
- 46662c3924ec5c0e643a6d35299b20f5ecf0ae046238a9ab9067d6df148a8e57
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.