Skip to main content

Module file_origin

Module file_origin 

Source
Expand description

Structured provenance for virtual files

Some files registered in a SourceContext are virtual: their content was extracted from another file — a notebook cell from a .ipynb, a region of a larger document. FileOrigin records that relationship on the file’s FileMetadata so consumers can address the position the author knows (the owning cell), hyperlink the real file on disk, and emit structured location data — instead of encoding all of that into a synthetic file path.

Enums§

FileOrigin
Where a virtual file’s content really comes from.