{"version":"2.1.332","anchor":"notebook-edit-cell-type-change-handles-attachments-and-fiel","canonical_anchor":"notebook-edit-cell-type-change-handles-attachments-and-fiel","heading":"Notebook edits refuse to turn a cell with pasted images into code","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/notebook-edit-cell-type-change-handles-attachments-and-fiel","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Notebook edits refuse to turn a cell with pasted images into code\n\nNotebookEdit 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\n\n**What**\n\nWhen Claude changes the type of a Jupyter notebook cell with the NotebookEdit tool, Claude Code now handles the cell's extra data:\n\n- 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.\n\n- A cell turned into markdown or raw text loses its outputs and run counter, which only code cells use.\n\n- A cell turned into code loses an empty attachments field.\n\nBefore, the type was changed without this check, and only cells turned into code had their outputs and run counter reset.\n\n**Why**\n\nPasted images in a notebook are no longer lost without warning when a cell is turned into code.\n\n- Area: Elsewhere\n- Names: `NotebookEdit`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}