This commit is contained in:
Lambda 2026-06-21 11:54:51 +00:00 committed by GitHub
commit c3e4d69a0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,7 +154,12 @@ else:
logger.info("No output file produced")
return
local_path = Path(config["output_file"]).relative_to(Path.cwd())
# `media_embed` (as subpath, i.e. Path.cwd()) is unable to discover files if `media_dir` is absolute
local_path = Path(config["output_file"])
if not local_path.is_absolute():
local_path = Path(config["output_file"]).relative_to(Path.cwd())
tmpfile = (
Path(config["media_dir"])
/ "jupyter"