Skip to content

Commit f448585

Browse files
author
anupshah14
committed
2 parents d11637e + b20cee0 commit f448585

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ TEMPLATE_DIR="workshops/docs/modules/notebooks/nbconvert_templates"
1111
# --allow-errors and better test notebooks at build time
1212
#
1313
# ggplot/plotnine cells are sometimes slow, so we increase the default timeout
14-
EXECUTE="--execute --allow-errors --ExecutePreprocessor.timeout=60"
14+
EXECUTE="--execute --allow-errors --ExecutePreprocessor.timeout=240"
1515

1616
generate_html='no'
1717
generate_instructor_notes='no'
@@ -21,6 +21,11 @@ for f in ${INPUT_DIR}/*.ipynb; do
2121
fn=$(basename -- "$f")
2222
name="${fn%.*}"
2323

24+
if [ -d ${OUT_DIR}/${name}_files ]; then
25+
echo "Removing old generated images from ${OUT_DIR}/${name}_files/"
26+
rm ${OUT_DIR}/${name}_files/*
27+
fi
28+
2429
printf -v i "%02d" $index
2530

2631
if [[ generate_html == 'yes' ]]; then

0 commit comments

Comments
 (0)