docs/guides/lint_rules/rules/empty_cells.md
✨ Formatting ⚠️ Unsafe Fixable
MF004: Empty cells that can be safely removed.
Detects cells that contain only:
pass)Empty cells can:
While not functionally breaking, removing empty cells improves code clarity and reduces visual noise.
Problematic:
# Cell 1: Only whitespace
Problematic:
# Cell 2: Only comments
# This is just a comment
# Nothing else here
Problematic:
# Cell 3: Only pass statement
pass
Problematic:
# Cell 4: Mix of comments, whitespace, and pass
# Some comment
pass
# Another comment
Note: This fix requires --unsafe-fixes because removing cells changes
the notebook structure, and potentially removes user-intended content.