AI Services Market
AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with GitHub Copilot Jun 3, 2025

Edit a large notebook with Copilot Agent Mode

The author asked Copilot Agent Mode for moderate changes and basic features in a large ipynb; it got halfway, stopped mid-line, and broke the notebook. · Jun 3, 2025

Edit a large notebook with Copilot Agent Mode preview
What They Did
A commenter described using Copilot Agent Mode in PyCharm on a fairly large Jupyter notebook, about 3,000 lines, to make moderate edits and add basic features. The agent would start rewriting the notebook, get partway through, then stop mid-line and corrupt more than half the file; the person reverted the changes and tried several models before giving up.
How It Went
It failed repeatedly on the same notebook, breaking the file badly enough that the author reverted each time and stopped using Agent Mode for that job. They switched to Gemini in chat mode instead, saying it worked better for AI coding.
Worth Knowing
The main catch was file safety: on this large ipynb, the agent repeatedly stopped halfway through edits and damaged over half the notebook.
Try it yourself with GitHub Copilot

I have a large notebook, [file name], and want these changes: [moderate change 1], [moderate change 2], and a basic feature to [feature]. Work one cell or section at a time, validate that the notebook is still valid JSON and runs after each edit, and never stop partway through a cell. When done, list what changed per section, and ask me before making any big restructuring edits.

Read the original ↗