Skip to content

Remove empty notebook attachments during standardization - #4470

Open
kiwoongyoon wants to merge 1 commit into
alteryx:mainfrom
kiwoongyoon:gitcontribute/20260830-154259-241335-alteryx-evalml-issue-4222
Open

kiwoongyoon wants to merge 1 commit into
alteryx:mainfrom
kiwoongyoon:gitcontribute/20260830-154259-241335-alteryx-evalml-issue-4222

Conversation

@kiwoongyoon

Copy link
Copy Markdown

Title: Remove empty notebook attachments during standardization

Summary

  • Remove empty cell-level attachments mappings when the notebook standardize command runs.
  • Preserve populated attachment mappings.
  • Add a focused regression test covering both behaviors.

Fixes #4222

Test evidence

  • python3 -c "import runpy; test = runpy.run_path('evalml/tests/test_notebook_version_standardizer.py')['test_standardize_removes_only_empty_attachments']; test()"
  • python3 docs/notebook_version_standardizer.py check-versions
  • python3 docs/notebook_version_standardizer.py check-execution
  • git diff --check

All commands exited successfully.

Risks or notes for maintainers

The supplied related-PR search was unavailable, so duplicate work should be checked before merge. The change only removes mappings exactly equal to {} and leaves populated attachment data untouched. Pytest, Black, and Ruff were unavailable in the Builder environment.

@CLAassistant

CLAassistant commented Aug 30, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@kiwoongyoon
kiwoongyoon marked this pull request as ready for review August 31, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove empty "attachment" metadata entry in pre-commit notebook cleanup

2 participants