Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Build a minimal working repository

Learning objectives

After this section, you will be able to:

The fastest way to understand repo2docker is to prepare a very small repository and launch it.

Using requirements.txt

Use this template to learn how to prepare contents with Jupyter Notebook to be Jupyter4NFDI ready (using repo2docker).

  1. Create your own copy of the repository using this template: image

  2. Working in your own copy of the repository add a requirements.txt file which specifies the Python packages needed to run the code in the sample Jupyter Notebook in this repository.

  3. The contents of the requirements.txt should be

pandas==3.0.5
altair==6.2.2
  1. Once you added the requirements.txt file, log into Jupyter4NFDI and in the Dashboard select repo2docker option. image

Note

A common problem when making your code portable are hardcoded file paths. Check the notebook for paths such as:

pd.read_csv("C:/Users/name/Desktop/data.csv")

Replace machine-specific paths with paths relative to the repository, for example:

pd.read_csv("data/data.csv")