Use your own content in OGGM-Edu¶
Ideally, we would like all the educational content to be bundled here, on this open platform. However, you might be interested in running your own notebooks in an OGGM-Edu environment, for example during the development phase, or for a very specific class.
Fortunately, this is very easy to do! All you need to do is to provide the notebooks you would like to run in an online git repository (e.g. GitHub, Gitlab, Bitbucket). For example, we have created an oggm-edu-contrib with one single notebook to get you started. See also Lizz’ class (in spanish) for a real-world example.
Using your own notebooks in an OGGM-Edu Binder environment is super easy! Once your notebooks are online, you simply have to provide the correct link to your students. The syntax is following:
For example, a link to our contrib repository looks like:
What is happening here? The first part of the link (up to the question mark) is telling MyBinder to use the OGGM environment we are maintaining here. The second part of the link is using nbgitpuller to fetch the provided online repository and it’s content. That’s all!
This was the most basic example. If you want to use other features, like using the Jupyter Lab interface (instead of the simple notebooks interface), and if you want to start at an arbitrary location in the repository (for example within a folder), the syntax is:
For example, we start the OGGM-Edu tutorials with this link:
It’s getting quite long, I know! What’s best therefore is to hide the links behind a badge. For example:
If you are creating educational resources based on OGGM-Edu, please Get in touch so that we can adverstise them!