def list_all_notebooks() -> set[str]:
    """Returns the relative paths to all notebooks in the git repo.

    In case the folder is not a git repo, it returns an empty set.
    """
    try:
        output = subprocess.check_output(['git', 'ls-files', '*.ipynb'])
        return set(output.decode('utf-8').splitlines())
    except subprocess.CalledProcessError as ex:
        warning("It seems that tests are not running in a git repo, skipping notebook tests", ex)
        return set()
Returns the relative paths to all notebooks in the git repo.

    In case the folder is not a git repo, it returns an empty set.
    
dev_tools/notebooks/utils.py