Claude Code v2.1.332 ·
Notebook edits refuse to turn a cell with pasted images into code
NotebookEdit now refuses to change a cell with attachments into a code cell, and cleans up fields that no longer fit when a cell's type changes
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.332,
ImprovementsSection of the release
What
When Claude changes the type of a Jupyter notebook cell with the NotebookEdit tool, Claude Code now handles the cell's extra data:
- A cell with attachments (such as pasted images) is not turned into a code cell. The notebook is left unchanged and Claude is told why.
- A cell turned into markdown or raw text loses its outputs and run counter, which only code cells use.
- A cell turned into code loses an empty attachments field.
Before, the type was changed without this check, and only cells turned into code had their outputs and run counter reset.
Why
Pasted images in a notebook are no longer lost without warning when a cell is turned into code.
See this entry in the whole of v2.1.332 →