## Notebooks as Open Educational Resources (OER)

Open Educational Resources (OER) are teaching and learning materials published under an open license that allows others to use, change, and share them.

This page describes how to publish Jupyter notebooks as OER in a public Git repository on git.nrw or GitHub, how to list them in the OER search index [OERSI](<https://oersi.org>), and how to share them with [nbgitpuller](<https://jupyterhub.nrw/en/documentation/nbgitpuller/index.md>). It is based on the TIB Hannover tutorial [Create and publish OER with GitHub](<https://github.com/TIBHannover/oer-github-tutorial/blob/main/tutorial.md>), which has more detail.

### 1\. Create a public repository

Create a new repository (called a *project* on GitLab) on one of the following platforms:

[git.nrw](<https://git.nrw>) is the central GitLab service for universities in North Rhine-Westphalia. Sign in at [gitlab.git.nrw](<https://gitlab.git.nrw>) and create a new project. Set the **Visibility Level** to **Public**.

See the [git.nrw documentation](<https://git.nrw/en/docs/>) for details on accounts, groups, and projects.

Sign in at [github.com](<https://github.com>) and create a new repository. Set it to **Public**.

The repository must be public: both nbgitpuller and OERSI access it without signing in.

### 2\. Add your notebooks

Example layout:

```
my-course/
├── README.md          # what the material is about, how to use it, nbgitpuller link
├── LICENSE            # full license text
├── metadata.yml       # OER metadata (see step 4)
├── notebooks/
│   ├── 01-introduction.ipynb
│   └── 02-exercises.ipynb
└── data/
    └── dataset.csv
```

Tips:

- **Include small datasets in the repository** and load them with relative paths (e.g., `../data/dataset.csv`), so the notebooks work right after they are pulled.
- **Describe the requirements** in the README, e.g., which packages are needed or which JupyterHub.nrw image the notebooks were tested with.
- **Only publish material you have the rights to.** For third-party content (figures, texts, datasets), see step 3.
- See the nbgitpuller [content repository best practices](<https://nbgitpuller.readthedocs.io/en/latest/topic/repo-best-practices.html>) for how to structure a repository so that updates reach learners without conflicts.

### 3\. Choose a license

Without a license, others may not reuse your material. OER usually use a Creative Commons (CC) license. [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>) allows any use as long as the author is credited. The [Creative Commons License Chooser](<https://creativecommons.org/chooser/>) helps you pick a license and creates the matching license notice.

- Add the full license text as a `LICENSE` file in the root of the repository.
- State the license in the `README.md` as well.
- If you include third-party material, check that its license permits your intended use and keep the required attribution and license notices. If you plan to share an adaptation, check that the licenses are compatible. A NoDerivatives (ND) license does not permit you to share adapted versions. The [CC-Mixer](<https://ccmixer.edu-sharing.org/>) checks whether licenses can be combined.
- Material funded under the *Vereinbarung zur Digitalisierung* (VzD) or a programme line such as OERContent.nrw must use CC0, CC BY, or CC BY-SA 4.0.

ORCA.nrw explains choosing and combining licenses on its page [OER erstellen](<https://www.orca.nrw/oer/oer-erstellen/>) (in German). Teachers at NRW universities can send legal questions to the ORCA.nrw [Rechtsinformationsstelle](<https://www.orca.nrw/oer/oer-erstellen/rechtsinformation/>) (in German).

### 4\. Add metadata

Metadata describes your OER: title, authors, license, language, subject, and so on. It is stored in a file named `metadata.yml` in the root of the repository.

1. Open the [OERSI metadata generator](<https://oersi.gitlab.io/metadata-form/metadata-generator.html>) and fill in at least all required fields.
2. The metadata is generated in the output panel on the right as you fill in the form. Copy it with the YAML copy button above the output.
3. Create the file `metadata.yml` in the root of your repository, paste the result, and commit it.

OERSI only imports the metadata if the status is *Published*:

```
creativeWorkStatus: "Published"
```

To remove the material from OERSI later, set the status to `Draft` or `Incomplete`.

### 5\. Make it findable in OERSI

Add the topic `open-educational-resources` to your repository:

In your project, go to **Settings** → **General**, add `open-educational-resources` under **Topics**, and click **Save changes**.

On the repository page, click the settings icon next to **About**, add `open-educational-resources` under **Topics**, and save.

OERSI updates its index every night, so the material appears in the search the next day. The OER search on [ORCA.nrw](<https://www.orca.nrw>) also uses OERSI. You can see all [OER from git.nrw in OERSI](<https://oersi.org/resources/?provider=%5B%22git.nrw%22%5D>). For more options, e.g., several resources in one repository, see the [OERSI documentation](<https://oersi.org/pages/en/docs/add-resources/single-resources/>).

### 6\. Share the notebooks

Create an nbgitpuller link to your repository as described in [NBGitPuller](<https://jupyterhub.nrw/en/documentation/nbgitpuller/index.md>). Add the link to your `README.md` and to your course in Moodle, Learnweb, or another platform.

### Example

The repository [nbgitpuller Sample Notebooks](<https://gitlab.git.nrw/jupyterhub.nrw/nbgitpuller-sample-notebooks>) on git.nrw follows these steps. It contains notebooks, a dataset, a README with an nbgitpuller link, a CC BY 4.0 license, and a `metadata.yml` for OERSI.

### Further links

- [Create and publish OER with GitHub](<https://github.com/TIBHannover/oer-github-tutorial/blob/main/tutorial.md>): tutorial by TIB Hannover.
- [OERSI](<https://oersi.org>): search index for OER in higher education.
- [ORCA.nrw](<https://www.orca.nrw>): OER portal of the universities in North Rhine-Westphalia, with guidance on [creating OER](<https://www.orca.nrw/oer/oer-erstellen/>) (in German).
- [git.nrw documentation](<https://git.nrw/en/docs/>) and [courses](<https://git.nrw/en/courses/>).
