MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _checkdep_usetex

Function _checkdep_usetex

lib/matplotlib/testing/_markers.py:18–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def _checkdep_usetex() -> bool:
19 if not shutil.which("tex"):
20 _log.warning("usetex mode requires TeX.")
21 return False
22 try:
23 _get_executable_info("dvipng")
24 except ExecutableNotFoundError:
25 _log.warning("usetex mode requires dvipng.")
26 return False
27 try:
28 _get_executable_info("gs")
29 except ExecutableNotFoundError:
30 _log.warning("usetex mode requires ghostscript.")
31 return False
32 return True
33
34
35needs_ghostscript = pytest.mark.skipif(

Callers 1

_markers.pyFile · 0.85

Calls 1

_get_executable_infoFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…