From 8236643bc44f331ca0407a82692301561cfae3a4 Mon Sep 17 00:00:00 2001 From: coder Date: Wed, 2 Apr 2025 15:43:18 +0530 Subject: [PATCH] Updated the notebook to work with changes in sm-studio package --- .../xgboost_bring_your_own/Batch_Transform_BYO_XGB.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ archived/xgboost_bring_your_own/Batch_Transform_BYO_XGB.ipynb b/ archived/xgboost_bring_your_own/Batch_Transform_BYO_XGB.ipynb index 8e0d825787..89cca0b34d 100644 --- a/ archived/xgboost_bring_your_own/Batch_Transform_BYO_XGB.ipynb +++ b/ archived/xgboost_bring_your_own/Batch_Transform_BYO_XGB.ipynb @@ -81,7 +81,8 @@ "import sys\n", "\n", "!{sys.executable} -m pip install \"sagemaker-experiments\"\n", - "!{sys.executable} -m pip install \"sagemaker-studio-image-build\"" + "!{sys.executable} -m pip install \"sagemaker-studio-image-build\"\n", + "!{sys.executable} -m pip install \"xlrd\"" ] }, { @@ -728,7 +729,7 @@ "source": [ "account = sess.boto_session.client(\"sts\").get_caller_identity()[\"Account\"]\n", "ecr = boto3.client(\"ecr\")\n", - "domain_id = \"sagemaker-studio-{}\".format(sm.list_apps()[\"Apps\"][0][\"DomainId\"])\n", + "domain_id = \"sagemaker-studio\"\n", "image_tag = ecr.list_images(repositoryName=domain_id, filter={\"tagStatus\": \"TAGGED\"})[\"imageIds\"][\n", " 0\n", "][\"imageTag\"]\n",