Skip to content

Commit

Permalink
Verify sagemaker SDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoppolu1 committed Oct 9, 2020
1 parent fbdca81 commit 5628a59
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
"!~/anaconda3/envs/pytorch_p36/bin/pip install torch==1.4.0 torchvision==0.5.0"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### SageMaker SDK > 2.0 is required for this notebook"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -32,6 +39,18 @@
"!~/anaconda3/envs/pytorch_p36/bin/pip install --upgrade sagemaker"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import sagemaker\n",
"current_version = sagemaker.__version__\n",
"if current_version.split('.')[0] == '1':\n",
" raise Exception(\"Please upgrade SageMaker SDK by running the above code cell and restart the kernel\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
"!~/anaconda3/envs/pytorch_p36/bin/pip install torch==1.4.0 torchvision==0.5.0"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### SageMaker SDK > 2.0 is required for this notebook"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -36,6 +43,18 @@
"!~/anaconda3/envs/pytorch_p36/bin/pip install --upgrade sagemaker"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import sagemaker\n",
"current_version = sagemaker.__version__\n",
"if current_version.split('.')[0] == '1':\n",
" raise Exception(\"Please upgrade SageMaker SDK by running the above code cell and restart the kernel\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 5628a59

Please sign in to comment.