Often my notebooks are organized with respect to GITROOT, so this snippet makes for an easy way to construct relative paths. 1gitroot = Path(subprocess.run(["git", "rev-parse", "--show-toplevel"], 2 check=True, 3 capture_output=True).stdout.decode("utf-8").strip()) 4# Usage 5exdata = gitroot / "data" / "very_important_folder" For packages which demand string only paths, another helper can be used in tandem. 1def getstrform(pathobj): 2 return str(pathobj.absolute()) Along with a context manage...