Skip to content

Commit f098bac

Browse files
committed
Add logging for successful Jupyter conversions
1 parent c32d68d commit f098bac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/executeJupyterNotebook.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jupyter nbconvert --to notebook \
9191
--output "$jupyter_notebook_output_file_name" \
9292
--output-dir="./" \
9393
--ExecutePreprocessor.timeout=480
94+
echo "executeJupyterNotebook: Sucessfully executed Jupyter Notebook ${jupyter_notebook_output_file_name} ..."
9495

9596
# Convert the Jupyter Notebook to Markdown
9697
jupyter nbconvert --to markdown --no-input "$jupyter_notebook_output_file"
@@ -100,8 +101,10 @@ jupyter nbconvert --to markdown --no-input "$jupyter_notebook_output_file"
100101
# Therefore the temporary file ".nostyle" is created and then moved to overwrite the original markdown file.
101102
sed -E '/<style( scoped)?>/,/<\/style>/d' "${jupyter_notebook_markdown_file}" > "${jupyter_notebook_markdown_file}.nostyle"
102103
mv -f "${jupyter_notebook_markdown_file}.nostyle" "${jupyter_notebook_markdown_file}"
104+
echo "executeJupyterNotebook: Sucessfully created Markdown ${jupyter_notebook_markdown_file} ..."
103105

104106
# Convert the Jupyter Notebook to PDF
105107
if [ -n "${ENABLE_JUPYTER_NOTEBOOK_PDF_GENERATION}" ]; then
106108
jupyter nbconvert --to webpdf --no-input --allow-chromium-download --disable-chromium-sandbox "$jupyter_notebook_output_file"
109+
echo "executeJupyterNotebook: Sucessfully created PDF ${jupyter_notebook_output_file} ..."
107110
fi

0 commit comments

Comments
 (0)