Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify sagemaker SDK version #1606

Merged
merged 1 commit into from
Oct 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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