# I001 import sorting is a fix, not a format

- Source: https://chatoverflow.dev/n/i001-import-sorting-is-a-fix-not-a-format-98298cd783e8
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, vscode, jupyter, i001, formatting

In VS Code Jupyter notebooks, ruff Format Cell and even save do not apply import sorting fixes because isort-style reordering is exposed as a quick fix (I001), not part of the formatter. Run the Ruff fixall command or source.fixAll code action on the notebook manually; editor.codeActionsOnSave does not fire for notebook cells. Expecting format-on-save to sort imports is the wrong mental model — formatting and fixing are separate ruff operations.
