Skip to content

Commit cbba95a

Browse files
authored
Merge pull request #34 from eds-book/main
Upgrade "Learning the underlying physics of a simulation model of the ocean’s temperature (CIRC23)" notebook to JB2
2 parents 0f5ba40 + c2a83d5 commit cbba95a

16 files changed

Lines changed: 8876 additions & 8351 deletions

.binder/environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- matplotlib
99
- scikit-learn==1.3.*
1010
- scikit-image
11-
- intake
12-
- intake-xarray
11+
- intake==0.7.0
12+
- intake-xarray== 0.7.0
1313
- netcdf4
1414
- h5netcdf
1515
- s3fs

.bumpversion.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[bumpversion]
2-
current_version = v1.0.19
2+
current_version = v2025.05.0
33
commit = True
44
tag = True
55
parse = (v(?P<major>\d+))(.(?P<minor>\d+))(.(?P<patch>\d+))
66
serialize = v{major}.{minor}.{patch}
77

8-
[bumpversion:file:CITATION.cff]
8+
[bumpversion:file:myst.yml]
99

1010
[bumpversion:file:notebook.ipynb]
1111
search = "print('Notebook repository version: {current_version}')\n"

.github/config.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/binder.yaml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,9 @@
1-
# Reference https://mybinder.readthedocs.io/en/latest/howto/gh-actions-badges.html
2-
name: Test this PR on Binder Badge
1+
name: test-binder
2+
33
on:
44
pull_request_target:
55
types: [opened]
66

7-
permissions:
8-
pull-requests:
9-
write
10-
117
jobs:
128
binder:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: comment on PR with Binder link
16-
uses: actions/github-script@v3
17-
with:
18-
github-token: ${{secrets.GITHUB_TOKEN}}
19-
script: |
20-
var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO;
21-
var PR_HEAD_REF = process.env.PR_HEAD_REF;
22-
github.issues.createComment({
23-
issue_number: context.issue.number,
24-
owner: context.repo.owner,
25-
repo: context.repo.repo,
26-
body: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}) :point_left: Test this PR on Binder`
27-
})
28-
env:
29-
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
30-
PR_HEAD_USERREPO: ${{ github.event.pull_request.head.repo.full_name }}
9+
uses: eds-book/notebooks-workflows/.github/workflows/binder.yaml@main

.github/workflows/build.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: monthly-build
2+
3+
on:
4+
schedule:
5+
- cron: "0 9 1 * *" # At 09:00 UTC on the 1st of each month
6+
7+
jobs:
8+
build-and-execute:
9+
uses: eds-book/notebooks-workflows/.github/workflows/build.yaml@main
10+
secrets:
11+
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
12+
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}

.github/workflows/preview.yaml

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
branches: [main, postprint]
6+
paths-ignore:
7+
- 'README.md'
8+
9+
jobs:
10+
build-and-execute:
11+
uses: eds-book/notebooks-workflows/.github/workflows/build.yaml@main
12+
secrets:
13+
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
14+
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
15+
16+
deploy:
17+
needs: build-and-execute
18+
uses: eds-book/notebooks-workflows/.github/workflows/deploy.yaml@main

.github/workflows/render.yaml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/test.yaml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,8 @@
1-
name: Test container image build
1+
name: test-container
22

33
on:
44
pull_request:
55

66
jobs:
77
test-build:
8-
runs-on: ubuntu-latest
9-
if: github.repository_owner == 'eds-book-gallery'
10-
steps:
11-
12-
# For biggish images, github actions runs out of disk space.
13-
# So we cleanup some unwanted things in the disk image, and reclaim that space for our docker use
14-
# https://github.com/actions/virtual-environments/issues/2606#issuecomment-772683150
15-
# and https://github.com/easimon/maximize-build-space/blob/b4d02c14493a9653fe7af06cc89ca5298071c66e/action.yml#L104
16-
# This gives us a total of about 52G of free space, which should be enough for now
17-
- name: cleanup disk space
18-
run: |
19-
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
20-
df -h
21-
22-
- name: checkout files in repo
23-
uses: actions/checkout@main
24-
25-
# Set quay image name
26-
- name: Get properties from the config file
27-
id: config_file
28-
uses: notiz-dev/github-action-json-property@release
29-
with:
30-
path: '.github/config.json'
31-
prop_path: 'quay_image'
32-
33-
- name: Build the image and push it if `NO_PUSH` disabled
34-
uses: jupyterhub/repo2docker-action@master
35-
with: # make sure username & password/token matches your registry
36-
NO_PUSH: "true"
37-
DOCKER_REGISTRY: ${{steps.config_quay.outputs.prop}}
38-
39-
# Uncomment and modify the following line with your image name. a
40-
IMAGE_NAME: "environmental_ds_book/test2i2c"
41-
42-
# Lets us monitor disks getting full as images get bigger over time
43-
- name: Show how much disk space is left
44-
run: df -h
8+
uses: eds-book/notebooks-workflows/.github/workflows/test.yaml@main

0 commit comments

Comments
 (0)