generated from pythonhealthdatascience/pydesrap_mms
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
refactorRestructuring code, files, etc.Restructuring code, files, etc.
Description
Realised it wasn't all doing stuff.
Simplify to this and re-run all for good measure:
#!/usr/bin/env bash
# Get the conda environment's jupyter path
CONDA_JUPYTER=$(dirname "$(which python)")/jupyter
run_notebook() {
local nb="$1"
echo "🏃 Running notebook: $nb"
if "${CONDA_JUPYTER}" nbconvert --to notebook --inplace --execute \
--ClearMetadataPreprocessor.enabled=True \
--ClearMetadataPreprocessor.clear_notebook_metadata=True \
"$nb"
then
echo "✅ Successfully processed: $nb"
else
echo "❌ Error processing: $nb"
fi
echo "-------------------------"
}
if [[ -n "$1" ]]; then
run_notebook "$1"
else
for nb in notebooks/*.ipynb; do
run_notebook "$nb"
done
fi
Metadata
Metadata
Assignees
Labels
refactorRestructuring code, files, etc.Restructuring code, files, etc.
Type
Projects
Status
Done