To Be Continued.

A field guide to research code handover

To Be Continued.

What you know is worth passing on.

What would you tell the next researcher?

Start with something they couldn’t find in the files. A decision you made over coffee or a plot you always check is enough. Skip any prompt and download your notes to keep with the code.

Choose which chapters to include

You can change these choices any time. Chapters with answers stay open.

Project details

All fields optional

Chapter I

The story so far

Project context, history and people

What happened before this handover?

Include a question your analysis can’t answer.

Technical · Personal

Example response
We built this to compare flowering dates across our meadow plots. We only sampled in spring, so it tells us very little about late-flowering species.

Technical · Personal

Field notes

Link to the change if you have it. Say what you tried first and why you moved on.

Personal · Ethical

Field notes

Mention who relies on the results, who needs credit and any promises you made.

A loose end is a good place for someone to pick up the work.

Personal

Further reading · Decisions and people

Chapter II

Lessons from the field

Maintenance, troubleshooting and learning

Which lessons cost you time?

Knowing when something happens can help someone investigate, even if the cause is still a mystery.

Technical

Technical · Personal

Example response
I never managed to establish why the last two plots swap order on some machines. I check their labels against the table by hand.

This can be about the data, the people or the research itself as much as the code.

Personal

Further reading · Lessons and troubleshooting

Chapter III

Proceed with care

Verification, reliability and safety

Help a colleague spot a result that looks right but isn’t.

Technical · Ethical

Field notes

Include a check you make by eye or using your knowledge of the research.

I normally check that the control group shows no systematic response. If it does, I investigate the timestamp preprocessing before changing the analysis.

Name the file, figure or test and describe what a reasonable match looks like.

Technical

Technical · Ethical

Example response
I don't know whether this works with newer datasets. The sensor changed after our last field season.

Think about original observations, private data, costly jobs and scripts that overwrite their inputs.

Ethical

Further reading · Trust and responsibility

Chapter IV

A day in the life

Workflow and everyday use

Take someone through a real working day.

Technical

Field notes

If a Pixi task, Makefile, Snakemake or Nextflow workflow already describes the sequence, name it and explain the decisions you make around it.

Technical · Personal

Example response
I compare the station names against the field notebook before merging the tables. Two stations changed names in 2022.

Flag old scripts that still look current.

Technical

Further reading · The everyday workflow

Chapter V

Under the hood

Understanding and adapting the code

Leave signposts for the next person editing the code.

A path and a few words about why it matters can save someone an afternoon.

Technical

Technical

Field notes

Names and type annotations can describe a structure. Explain what its dimensions, units or categories mean in the research.

In the observation array, the second dimension is a repeat visit to the same plot. It is easy to mistake those visits for independent samples.

Point to a sensible starting point and an assumption worth checking first.

Technical · Ethical

Further reading · Names, units and assumptions

Chapter VI

Getting started

Getting the code running

Give someone a small first run they can repeat.

Name a small input they can start with and something they should see when it works.

Technical

Field notes

A reference to your README, pixi.toml, pyproject.toml, uv.lock or environment.yml may be enough. Add anything someone would still need to know.

Mention datasets, equipment or permissions and how to get them. Keep passwords and private access links out of your notes.

Technical · Ethical

Technical

Example response
The notebook looks for the data folder next to itself. Opening it from the project root gives a confusing file error.
Further reading · A first successful run
Back to contents

Export your handover

Keep HANDOVER.md with your code so the next researcher can find it.

Leave out passwords, credentials, confidential personal information and anything that should stay out of your repository.

Clear this draft?

This removes the project details and responses saved for this guide in this browser. Export a copy first if you want to keep them.

Open a handover

Choose a HANDOVER.md you exported from this guide, drop it here or paste its contents.

Paste exported Markdown

Include the header with handover_version and question_order.

Replace this draft?

Opening this file will replace the project details and responses in this browser. Export your current draft first if you want to keep it.