Skip to content

Commit

Permalink
fix for magic comand
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienDoerner committed Oct 27, 2023
1 parent 8b77ffe commit 60682a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ jobs:
runfolder: "notebook_run"
run: |
mkdir "$runfolder"
for file in doc/pages/example_notebooks/*/*.ipynb; do
for file in ./*/*.ipynb; do
if [ -f "$file" ]; then
jupyter-nbconvert --to python "$file" --output-dir "$runfolder" --RegexRemovePreprocessor.patterns="^%"
f=(${file//// })
f=${f[1]}
f=(${f//./})
jupyter nbconvert --to python "$file" --stdout | grep -v -e "^get_ipython" > "$runfolder"/"$f".py
fi
done
- name: run all python scripts
Expand Down

0 comments on commit 60682a4

Please sign in to comment.