{"version":"2.1.327","anchor":"notebook-edit-preserves-trailing-newline","canonical_anchor":"notebook-edit-preserves-trailing-newline","heading":"Notebook edits keep the final newline","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/notebook-edit-preserves-trailing-newline","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Notebook edits keep the final newline\n\nWhen Claude edits a Jupyter notebook that ended with a newline, the saved file now still ends with one\n\n**What**\n\nA Jupyter notebook is a file that mixes code, results and notes. When Claude edits one with the NotebookEdit tool and the original file ended with a newline, Claude Code now adds that newline back after saving.\n\n**Why**\n\nBefore, editing a notebook could remove its final newline. That showed up as an unwanted change in version control tools such as git.\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: no"}