From f65df9a8d38cd49dc0a7fd0c79a70947b082711e Mon Sep 17 00:00:00 2001 From: Martin Schobben Date: Mon, 13 Jan 2025 16:07:45 +0100 Subject: [PATCH 1/3] fix paths --- notebooks/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/notebooks/Makefile b/notebooks/Makefile index 245e860..f9996de 100644 --- a/notebooks/Makefile +++ b/notebooks/Makefile @@ -68,9 +68,10 @@ preview: $(CONDA_ENV)/envs/eo-datascience $(CONDA_ENV_DIR) $(KERNEL_DIR) jupyter-book build ./_preview clean: - rm --force --recursive .ipynb_checkpoints/ **/.ipynb_checkpoints/ _book/ \ - _freeze/ .quarto/ _preview/ ./pytest_cache ./**/**/**/.jupyter_cache \ - ./**/**/.jupyter_cache + rm --force --recursive **/.ipynb_checkpoints **/**/.ipynb_checkpoints \ + **/**/**/.ipynb_checkpoints **/.jupyter_cache \ + **/**/.jupyter_cache **/**/**/.jupyter_cache \ + _book _freeze .quarto _preview ./pytest_cache teardown: conda remove -n eo-datascience --all -y From 4c50e8767db72356e4ce291521c381ea866bb63d Mon Sep 17 00:00:00 2001 From: Martin Schobben Date: Mon, 13 Jan 2025 16:10:21 +0100 Subject: [PATCH 2/3] make binder --- .github/workflows/publish-pythia.yaml | 1 - .github/workflows/publish-quarto.yaml | 12 ++++++------ notebooks/postBuild | 5 +++++ 3 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 notebooks/postBuild diff --git a/.github/workflows/publish-pythia.yaml b/.github/workflows/publish-pythia.yaml index 38e3e8f..ea5e920 100644 --- a/.github/workflows/publish-pythia.yaml +++ b/.github/workflows/publish-pythia.yaml @@ -69,7 +69,6 @@ jobs: python -m pip install nbstripout render_sfinx_toc ./pythia clean_nb ./notebooks ./pythia/notebooks - cp -rf ./Makefile ./pythia/ cp -rf ./chapters/references.bib ./pythia/notebooks/ cp -rf --parents ./notebooks/images ./pythia cp -rf --parents $(find notebooks -name "*.yml") ./pythia diff --git a/.github/workflows/publish-quarto.yaml b/.github/workflows/publish-quarto.yaml index d20820b..4e05fb2 100644 --- a/.github/workflows/publish-quarto.yaml +++ b/.github/workflows/publish-quarto.yaml @@ -52,9 +52,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # - name: Cache Binder Build on mybinder.org - # uses: jupyterhub/repo2docker-action@master - # with: - # NO_PUSH: true - # MYBINDERORG_TAG: ${{ github.event.ref }} - # REPO2DOCKER_EXTRA_ARGS: --subdir notebooks \ No newline at end of file + - name: Cache Binder Build on mybinder.org + uses: jupyterhub/repo2docker-action@master + with: + NO_PUSH: true + MYBINDERORG_TAG: ${{ github.event.ref }} + REPO2DOCKER_EXTRA_ARGS: --subdir notebooks \ No newline at end of file diff --git a/notebooks/postBuild b/notebooks/postBuild new file mode 100644 index 0000000..41c8f05 --- /dev/null +++ b/notebooks/postBuild @@ -0,0 +1,5 @@ +#!/bin/bash + +set -x + +make kernel \ No newline at end of file From bca723b768e85ddb51601a01033d21a236a46364 Mon Sep 17 00:00:00 2001 From: Martin Schobben Date: Tue, 14 Jan 2025 11:15:19 +0100 Subject: [PATCH 3/3] add binder badge --- README.md | 2 ++ README.qmd | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 927d900..c27f910 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Earth Observation Datascience +[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/tuw-geo/eo-datascience/main) + This is a book on Earth Observation Datascience, consisting of common workflows in Python at the Department of Geodesy and Geoinformation at the TU Wien (Vienna Austria). diff --git a/README.qmd b/README.qmd index a4b767e..bf9d65b 100644 --- a/README.qmd +++ b/README.qmd @@ -3,6 +3,8 @@ title: "Earth Observation Datascience" format: gfm --- +[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/tuw-geo/eo-datascience/main) + This is a book on Earth Observation Datascience, consisting of common workflows in Python at the Department of Geodesy and Geoinformation at the TU Wien (Vienna Austria). The workflows comprise exercises that utilize remote sensing information, such as microwave backscattering from Sentinel-1 and visible range imagery from Sentinel-2.