spectral.utils.plotting.get_repo_root#

spectral.utils.plotting.get_repo_root() Path[source]#

Get repository root directory, handling both local and sphinx-gallery execution.

Returns the repository root by detecting the presence of pyproject.toml. Works in both local execution (via main.py) and sphinx-gallery contexts.

Returns:
Path

Absolute path to the repository root