The notebook runner moves to reports/: experiment, notebook_jobs and notebook_import next to rendering and eda

They run a notebook on a build's file and keep it as an MLflow run, as eda does; io/ keeps the storage and MLflow
boundary and pipelines/ the cohort pipelines. Moved whole with git mv, imports repointed; models.notebook, the API
notebooks import, stays where it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
This commit is contained in:
2026-11-19 20:50:46 -06:00
parent dce29670a4
commit 01e4406838
9 changed files with 26 additions and 23 deletions
@@ -1,6 +1,6 @@
"""What this module covers: notebooks run on a cohort build's file as MLflow runs (`models.pipelines.experiment`), the
job folder and its executors (`models.io.notebook_jobs`), the import of what a notebook trained
(`models.io.notebook_import`), the API notebooks use inside (`models.notebook`) and the Jupyter renderer: what the
"""What this module covers: notebooks run on a cohort build's file as MLflow runs (`models.reports.experiment`), the
job folder and its executors (`models.reports.notebook_jobs`), the import of what a notebook trained
(`models.reports.notebook_import`), the API notebooks use inside (`models.notebook`) and the Jupyter renderer: what the
notebook can reach, what the run keeps, a notebook that fails, a notebook that tries to reach past its job, the runner
as the container runs it, and listing and reading runs back.
@@ -21,7 +21,7 @@ import pytest
from models.io.contracts import COHORT_SCHEMA
from models.io.registry import registry
from models.pipelines import experiment
from models.reports import experiment
def _notebook(*sources: str) -> dict:
@@ -164,7 +164,7 @@ def test_files_a_notebook_links_outside_its_job_are_never_read(jupyter, cohort_f
def test_read_job_file_refuses_links_and_paths_out_of_the_job(tmp_path):
"""Fails if `read_job_file` follows a symbolic link or a `..` path out of the job folder."""
from models.io.notebook_jobs import JobError, read_job_file
from models.reports.notebook_jobs import JobError, read_job_file
job = tmp_path / "job"
job.mkdir()