From f98b58bacbf1dfb6903d86d6a407652dbf231534 Mon Sep 17 00:00:00 2001 From: Larissa Heinrich Date: Wed, 24 Jul 2024 17:06:45 -0400 Subject: [PATCH] edit jupytext github action to preserve cell ids avoids unnecessary commits --- .github/workflows/build-notebooks.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-notebooks.yaml b/.github/workflows/build-notebooks.yaml index 0554828..50a1337 100644 --- a/.github/workflows/build-notebooks.yaml +++ b/.github/workflows/build-notebooks.yaml @@ -19,13 +19,13 @@ jobs: python -m pip install -U pip python -m pip install jupytext nbconvert - - name: Build notebooks run: | - jupytext --to ipynb --update-metadata '{"jupytext":{"cell_metadata_filter":"all"}}' solution.py + jupytext --to ipynb --update-metadata '{"jupytext":{"cell_metadata_filter":"all"}}' --update solution.py + jupytext --to ipynb --update-metadata '{"jupytext":{"cell_metadata_filter":"all"}}' --update solution.py --output exercise.ipynb - jupyter nbconvert solution.ipynb --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags solution --to notebook --output exercise.ipynb - jupyter nbconvert solution.ipynb --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags task --to notebook --output solution.ipynb + jupyter nbconvert solution.ipynb --ClearOutputPreprocessor.enabled=True --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags task --to notebook --output solution.ipynb + jupyter nbconvert exercise.ipynb --ClearOutputPreprocessor.enabled=True --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags solution --to notebook --output exercise.ipynb - uses: EndBug/add-and-commit@v9 with: