Skip to content

Commit 88ee9ef

Browse files
authored
add banner and links to versions (#138)
1 parent 2507fc0 commit 88ee9ef

File tree

5 files changed

+58
-17
lines changed

5 files changed

+58
-17
lines changed

_config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,21 @@ launch_buttons:
1818
binderhub_url: "https://mybinder.org"
1919
jupyterhub_url: "https://hub.oggm.org"
2020
html:
21+
extra_css:
22+
- _static/custom.css
2123
use_repository_button: true
2224
use_issues_button: true
2325
use_edit_page_button: true
26+
announcement: |
27+
<p class="announcement">
28+
🚧 <strong>Scheduled maintenance:</strong> the OGGM cluster will be offline <strong>April 27 (evening CEST) – April 30 (morning CEST)</strong>.
29+
<a href="https://oggm.org/2025/04/15/service-maintenance/">Learn more</a>.
30+
</p>
2431
extra_footer: |
2532
<p>
2633
These notebooks are licensed under a <a href="https://github.com/OGGM/tutorials/blob/master/LICENSE.txt" target="_blank">BSD-3-Clause license</a>.
2734
<br>
28-
&copy; Copyright 2014-2024.
35+
&copy; Copyright 2014-2025.
2936
</p>
3037
sphinx:
3138
config:

_static/custom.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
html {
2+
--pst-font-size-h1: 2.2em; /* Default: 2.625 */
3+
--pst-font-size-h2: 1.6em; /* Default: 2.125 */
4+
--pst-font-size-h3: 1.2em; /* Default: 1.75 */
5+
}
6+
7+
.announcement {
8+
background-color: orange !important; /* You can use a hex or tailwind-inspired shade if preferred */
9+
color: white !important;
10+
padding: 0.5em 1em;
11+
margin: 0;
12+
font-weight: 500;
13+
}
14+
15+
.announcement a {
16+
color: white !important;
17+
text-decoration: underline;
18+
}
19+
20+
.announcement strong {
21+
font-weight: 700;
22+
}

notebooks/tutorials/ioggm.ipynb

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"\n",
1010
"This tutorial gives you the tools to run IGM within OGGM and also compare it with OGGM runs. \n",
1111
"\n",
12-
"**This is very much work in progress.** You'll need an IGM installation for this to run. The notebook currently does not run on OGGM Hub or is not displayed on the website, because of the Tensorflow depedency. We are working on it!"
12+
"**This is very much work in progress.** You'll need an IGM installation for this to run. The notebook currently does not run on OGGM Hub, because of the Tensorflow depedency. We are working on it!"
1313
]
1414
},
1515
{
@@ -87,8 +87,9 @@
8787
"id": "5",
8888
"metadata": {},
8989
"source": [
90-
"### Activate the 3 lines of code in the following code block to match the starting volume with the consensus volume (Farinotti et al. 2019) \n",
91-
"#### Note: the consensus volume is used as a reference volume for OGGM's dynamic spinup during the bed inversion as a reference volume, but in the further workflow only the RGI-area is matched and not the consensus volume. "
90+
"Activate the 3 lines of code in the following code block to match the starting volume with the consensus volume (Farinotti et al. 2019) \n",
91+
"\n",
92+
"Note: the consensus volume is used as a reference volume for OGGM's dynamic spinup during the bed inversion as a reference volume, but in the further workflow only the RGI-area is matched and not the consensus volume. "
9293
]
9394
},
9495
{
@@ -111,7 +112,7 @@
111112
"id": "7",
112113
"metadata": {},
113114
"source": [
114-
"### Running OGGM Flowline with a GCM Climate"
115+
"## Running OGGM Flowline with a GCM Climate"
115116
]
116117
},
117118
{
@@ -160,8 +161,9 @@
160161
"id": "10",
161162
"metadata": {},
162163
"source": [
163-
"### create the corresponding mass balance model(MB model) of the run above, so that the iOGGM run can be forced with same MB model\n",
164-
"#### (using this MB model with the instructed-oggm doesn't work yet)"
164+
"## create the corresponding mass balance model(MB model) of the run above, so that the iOGGM run can be forced with same MB model\n",
165+
"\n",
166+
"(using this MB model with the instructed-oggm doesn't work yet)"
165167
]
166168
},
167169
{
@@ -182,8 +184,9 @@
182184
"id": "12",
183185
"metadata": {},
184186
"source": [
185-
"### Running OGGM Flowline with a Random Climate \n",
186-
"#### this run is forced with climate data from 1999-2019 randomly sampled"
187+
"## Running OGGM Flowline with a Random Climate \n",
188+
"\n",
189+
"this run is forced with climate data from 1999-2019 randomly sampled"
187190
]
188191
},
189192
{
@@ -209,7 +212,7 @@
209212
"id": "14",
210213
"metadata": {},
211214
"source": [
212-
"### create the corresponding random mass balance model(MB model) of the run above, so that the iOGGM run can be forced with same random MB model"
215+
"## create the corresponding random mass balance model(MB model) of the run above, so that the iOGGM run can be forced with same random MB model"
213216
]
214217
},
215218
{
@@ -260,8 +263,9 @@
260263
"id": "18",
261264
"metadata": {},
262265
"source": [
263-
"### Running the iOGGM from the consensus ice thickness (Farinotti et al. 2019)\n",
264-
"#### once with random and once with the same GCM climate as above"
266+
"## Running the iOGGM from the consensus ice thickness (Farinotti et al. 2019)\n",
267+
"\n",
268+
"once with random and once with the same GCM climate as above"
265269
]
266270
},
267271
{
@@ -302,8 +306,9 @@
302306
"id": "21",
303307
"metadata": {},
304308
"source": [
305-
"### Running the iOGGM from the Cook et al. 2023 ice thickness product\n",
306-
"#### once with random and once with the same GCM climate as above"
309+
"## Running the iOGGM from the Cook et al. 2023 ice thickness product\n",
310+
"\n",
311+
"once with random and once with the same GCM climate as above"
307312
]
308313
},
309314
{
@@ -382,7 +387,7 @@
382387
"id": "28",
383388
"metadata": {},
384389
"source": [
385-
"#### adapt starting date for the random runs"
390+
"adapt starting date for the random runs"
386391
]
387392
},
388393
{

notebooks/tutorials/massbalance_perturbation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@
472472
"name": "python",
473473
"nbconvert_exporter": "python",
474474
"pygments_lexer": "ipython3",
475-
"version": "3.11.4"
475+
"version": "3.12.4"
476476
},
477477
"latex_envs": {
478478
"LaTeX_envs_menu_present": true,

notebooks/welcome.ipynb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@
88
"\n",
99
"If you are new to jupyter notebooks or to jupyterlab, we recommend to have a look at our [introduction to jupyter notebooks](https://edu.oggm.org/en/latest/notebooks_howto.html) first!\n",
1010
"\n",
11-
"If you are reading this from our webpage (https://oggm.org/tutorials), remember that each page displayed here is in fact a jupyter notebook! You can start an interactive version of these tutorials online with [MyBinder](https://docs.oggm.org/en/latest/cloud.html) by clicking on the \"launch button\" on the top right of this page (the little rocket 🚀)."
11+
"If you are reading this from our webpage (https://oggm.org/tutorials), remember that each page displayed here is in fact a jupyter notebook! You can start an interactive version of these tutorials online with [MyBinder](https://docs.oggm.org/en/latest/cloud.html) by clicking on the \"launch button\" on the top right of this page (the little rocket 🚀).\n",
12+
"\n",
13+
"⚠️ You can access various versions of these tutorials ont the web:\n",
14+
"- [Stable](https://oggm.org/tutorials) (**the default**): the version of the tutorials working with the latest official release of OGGM\n",
15+
"- [Development version](https://tutorials.oggm.org/master): the version of the tutorials working with the most up-to-date version of OGGM on github (unreleased)\n",
16+
"- [v1.5.3](https://tutorials.oggm.org/v1.5.3/notebooks/welcome.html) (2022): legacy tutorials for the OGGM versions predating v1.6 and the mass-balance calibration overhaul.\n",
17+
"\n",
18+
"Note that you can download the notebooks for any of these versions on github by selecting a given branch: [stable](https://github.com/OGGM/tutorials/tree/stable), [master](https://github.com/OGGM/tutorials), [v1.5.3](https://github.com/OGGM/tutorials/tree/v1.5.3). Be aware of which versions you are using!"
1219
]
1320
},
1421
{

0 commit comments

Comments
 (0)