build_lineage_from_notebook_code
Public callable
Scan, optionally enrich, and validate lineage from notebook source code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code
|
str
|
Notebook source code to parse. |
required |
use_ai
|
bool
|
Whether to invoke AI enrichment when a helper is provided. |
True
|
ai_helper
|
Any or None
|
Optional callable used to enrich deterministic lineage steps. |
None
|
Returns:
| Type | Description |
|---|---|
dict of str to Any
|
End-to-end lineage result with steps, validation, review status, and notes. |
Source code in src/fabricops_kit/lineage.py
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |