Skip to content

Commit

Permalink
chore: put back debug mode for jupyter
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft committed Apr 25, 2024
1 parent 011d03d commit e814ce8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script/make_utils/jupyter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,21 @@ then
# Remove notebooks with long execution times
for NOTEBOOK_TO_REMOVE in "${NOTEBOOKS_TO_SKIP[@]}"
do
echo "${NOTEBOOK_TO_REMOVE} is skipped as its execution time is too long"
echo "Skipping: ${NOTEBOOK_TO_REMOVE}"

# shellcheck disable=SC2206
LIST_OF_NOTEBOOKS=(${LIST_OF_NOTEBOOKS[@]/*${NOTEBOOK_TO_REMOVE}*/})
done

echo ""

# shellcheck disable=SC2068
for NOTEBOOK in ${LIST_OF_NOTEBOOKS[@]}
do
echo "Refreshing ${NOTEBOOK}"

START=$(date +%s)
if jupyter nbconvert --to notebook --inplace --execute "${NOTEBOOK}"; then
if jupyter nbconvert --to notebook --inplace --execute "${NOTEBOOK}" --log-level=DEBUG; then
echo "${NOTEBOOK}" >> "${SUCCESSFUL_NOTEBOOKS}"
else
echo "${NOTEBOOK}" >> "${FAILED_NOTEBOOKS}"
Expand Down

0 comments on commit e814ce8

Please sign in to comment.