Back to Articles

How to Efficiently Duplicate Notebooks for Better Development

August 13, 2026232

Duplicating Notebooks: How One Small Action Changes the Rules of the Game in Development and Learning

No more kernel-breaking "Save As": meet the right way to create perfect copies of your work environment without touching the original

Anyone who works with code notebooks (Notebooks) like Jupyter, Google Colab, or Deepnote knows the slight anxiety of trying to change something inside a script that works. We want to test a new library, change a parameter in the AI model, or simply try a different approach to cleaning the data, but the fear of "breaking" what already runs makes us hesitate.

Until recently, the solution was clumsy: downloading the file and uploading it again, or using "Save As," which often severed the link between the Kernel and the existing outputs. The new ability to duplicate an entire Notebook, with all its sources, outputs, and structure, at the click of a button is not just a technical convenience. It is a conceptual change in the way we manage data and artificial intelligence projects.

Why Is Duplication Much More Than "Copy-Paste"?

When we talk about duplicating a Notebook, we are not just talking about copying the text or the code. The real power lies in duplicating the State. Studies in scientific computing show that researchers waste a lot of time reconstructing work environments to arrive at the same results (A Framework to capture and reproduce the Absolute State of Jupyter Notebooks).

The option to create a copy that includes all the Outputs (the charts, tables, and calculations that have already been run) lets us:

  1. •A fixed reference point: You can leave the original Notebook as the "Source of Truth" and use the copy as a sandbox (Sandbox) for experiments.
  2. •Preserve outputs: Unlike re-running code, which can take hours or consume expensive GPU resources, duplication keeps the existing results and lets you continue from the point where you stopped.

Case Studies: Where Does This Meet Us in the Field?

1. Shared Learning and Academia

Lecturers and instructors can create a perfect learning notebook that includes Markdown explanations, sample code, and expected results. Students don't have to start from scratch; they simply duplicate the template and start working on their own personal copy. This prevents a situation where one student accidentally changes the original for everyone.

2. Work Templates (Templates) in Organizations

In data science teams, there are often fixed processes, for example connecting to the corporate database and performing initial cleaning. Instead of writing this code from scratch every time, you create a template Notebook. Every new project starts by duplicating this template, which ensures a uniform work standard and saves precious time (Jupyter Notebooks: A Practical Guide For Data Science).

3. AI-Based Development

With AI agents like Claude Code or Gemini entering the Notebook environment, duplication becomes critical. We can let the AI run massive changes on one copy while we keep our stable version aside. If the AI "went off the rails" or created bugs, you simply delete the copy and go back to the original (First impressions from testing 4 Coding Agents with Jupyter Notebooks).

The Tools Leading the Revolution

This capability is becoming an industry standard. In recent versions of JupyterLab, the option to duplicate notebooks directly from the context menu was added, which solves historical file management problems (Jupyter Notebook GitHub Issue #7368).

Cloud platforms like Google Colab and Deepnote also put a huge emphasis on collaboration. In Deepnote, for example, duplication is an integral part of the built-in Version Control mechanism, which lets teams work in parallel without overwriting each other's work (Version control in Jupyter notebooks).

Bottom Line

The ability to duplicate Notebooks is not just a nice "feature." It is a work tool that lets us be bolder. When we know the original is safe and that our copy includes everything needed to keep working, our creativity and productivity go up.

If you are still working with the old methods of copying code by hand, it's time to move to working with duplicates and templates. It will save you time, prevent embarrassing mistakes, and let you manage complex projects much more intelligently.

Thanks to Spotlight by Daniel Trabelsi by Daniel Trabelsi for sharing and inspiring this article.

Join the channel
#Notebooks#Jupyter#code duplication#data science#development workflow#data projects#Google Colab