Notebooks as OER
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, and how to share them with nbgitpuller. It is based on the TIB Hannover tutorial Create and publish OER with GitHub, 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 is the central GitLab service for universities in North Rhine-Westphalia. Sign in at gitlab.git.nrw and create a new project. Set the Visibility Level to Public.
See the git.nrw documentation for details on accounts, groups, and projects.
Sign in at 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 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 allows any use as long as the author is credited. The Creative Commons License Chooser helps you pick a license and creates the matching license notice.
- Add the full license text as a
LICENSEfile in the root of the repository. - State the license in the
README.mdas 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 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 (in German). Teachers at NRW universities can send legal questions to the ORCA.nrw Rechtsinformationsstelle (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.
- Open the OERSI metadata generator and fill in at least all required fields.
- 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.
- Create the file
metadata.ymlin 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 also uses OERSI. You can see all OER from git.nrw in OERSI. For more options, e.g., several resources in one repository, see the OERSI documentation.
6. Share the notebooks¶
Create an nbgitpuller link to your repository as described in NBGitPuller. Add the link to your README.md and to your course in Moodle, Learnweb, or another platform.
Example¶
The repository 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: tutorial by TIB Hannover.
- OERSI: search index for OER in higher education.
- ORCA.nrw: OER portal of the universities in North Rhine-Westphalia, with guidance on creating OER (in German).
- git.nrw documentation and courses.