From e6898bc9351851b5b04f62bf8b56541f59b5ff56 Mon Sep 17 00:00:00 2001 From: Philips Kokoh Date: Wed, 2 Mar 2022 18:09:57 +0800 Subject: [PATCH] Update execute notebook on startup script - Current SageMaker Notebook instance does not have `pytorch_p36`. It's `pytorch_p37` now. - The current `nbconvert` version requires explicit `--to` parameter. --- scripts/execute-notebook-on-startup/on-start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/execute-notebook-on-startup/on-start.sh b/scripts/execute-notebook-on-startup/on-start.sh index 7fba3a6..5e9367c 100644 --- a/scripts/execute-notebook-on-startup/on-start.sh +++ b/scripts/execute-notebook-on-startup/on-start.sh @@ -7,11 +7,11 @@ set -e # PARAMETERS -ENVIRONMENT=pytorch_p36 +ENVIRONMENT=pytorch_p37 NOTEBOOK_FILE=/home/ec2-user/SageMaker/MyNotebook.ipynb source /home/ec2-user/anaconda3/bin/activate "$ENVIRONMENT" -jupyter nbconvert "$NOTEBOOK_FILE" --ExecutePreprocessor.kernel_name=python --execute +jupyter nbconvert "$NOTEBOOK_FILE" --ExecutePreprocessor.kernel_name=python --execute --to notebook -source /home/ec2-user/anaconda3/bin/deactivate \ No newline at end of file +source /home/ec2-user/anaconda3/bin/deactivate