Skip to content
Open
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
@@ -0,0 +1,249 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "e05d69d6",
"metadata": {},
"source": [
"# Installing Dependencies\n",
"\n",
"Please install the dependencies before proceeding with the rest of the workshop."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "18de50ca",
"metadata": {
"execution": {
"iopub.execute_input": "2025-10-23T18:56:09.291906Z",
"iopub.status.busy": "2025-10-23T18:56:09.291582Z",
"iopub.status.idle": "2025-10-23T18:56:09.446265Z",
"shell.execute_reply": "2025-10-23T18:56:09.445577Z",
"shell.execute_reply.started": "2025-10-23T18:56:09.291885Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"strands-agents==1.4.0\n",
"strands-agents[sagemaker]\n",
"strands-agents-tools>=0.2.3\n",
"strands-agents-builder>=0.1.7\n",
"yfinance==0.2.65\n",
"matplotlib==3.10.3\n",
"beautifulsoup4>=4.13.4\n",
"pandas==2.3.0\n",
"seaborn==0.13.2\n",
"joblib==1.5.1\n",
"requests>=2.32.4\n",
"scikit-learn==1.7.0\n",
"uv==0.8.6\n",
"mem0ai==0.1.114\n",
"opensearch-py\n",
"ddgs==9.3.1\n",
"faiss-cpu==1.11.0\n",
"sagemaker==2.249.0\n",
"openai==1.99.3\n",
"aiohttp==3.12.15\n",
"boto3==1.39.8\n",
"bedrock-agentcore==0.1.1\n",
"bedrock-agentcore-starter-toolkit==0.1.5\n",
"botocore==1.39.8\n",
"litellm==1.72.2\n"
]
}
],
"source": [
"!cat requirements-strands.txt"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "d82dc1bd-c256-40a7-b25b-751ece4b43c1",
"metadata": {
"execution": {
"iopub.execute_input": "2025-10-23T18:56:09.447730Z",
"iopub.status.busy": "2025-10-23T18:56:09.447437Z",
"iopub.status.idle": "2025-10-23T18:56:13.687534Z",
"shell.execute_reply": "2025-10-23T18:56:13.686666Z",
"shell.execute_reply.started": "2025-10-23T18:56:09.447708Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
"source": [
"# Warnings are safe to ignore\n",
"%pip uninstall -q -y autogluon-multimodal autogluon-timeseries autogluon-features autogluon-common autogluon-core"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "1453ae11-d805-4f94-a299-7198638b80bf",
"metadata": {
"execution": {
"iopub.execute_input": "2025-10-23T18:56:13.689248Z",
"iopub.status.busy": "2025-10-23T18:56:13.688543Z",
"iopub.status.idle": "2025-10-23T18:56:45.305777Z",
"shell.execute_reply": "2025-10-23T18:56:45.305092Z",
"shell.execute_reply.started": "2025-10-23T18:56:13.689221Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"autogluon-tabular 1.3.1 requires autogluon.core==1.3.1, which is not installed.\n",
"autogluon-tabular 1.3.1 requires autogluon.features==1.3.1, which is not installed.\n",
"aiobotocore 2.21.1 requires botocore<1.37.2,>=1.37.0, but you have botocore 1.39.8 which is incompatible.\n",
"autogluon-tabular 1.3.1 requires pandas<2.3.0,>=2.0.0, but you have pandas 2.3.0 which is incompatible.\n",
"autogluon-tabular 1.3.1 requires scikit-learn<1.7.0,>=1.4.0, but you have scikit-learn 1.7.0 which is incompatible.\n",
"sagemaker-studio-analytics-extension 0.1.7 requires sparkmagic==0.22.0, but you have sparkmagic 0.21.0 which is incompatible.\n",
"sparkmagic 0.21.0 requires pandas<2.0.0,>=0.17.1, but you have pandas 2.3.0 which is incompatible.\u001b[0m\u001b[31m\n",
"\u001b[0mNote: you may need to restart the kernel to use updated packages.\n"
]
}
],
"source": [
"%pip install -q -r requirements-strands.txt"
]
},
{
"cell_type": "markdown",
"id": "a3fd75f2",
"metadata": {},
"source": [
"### This cell will restart the kernel. Wait for the pop-up box to appear, then click \"OK\" before proceeding."
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "b96ff09e",
"metadata": {
"execution": {
"iopub.execute_input": "2025-10-23T18:56:45.307086Z",
"iopub.status.busy": "2025-10-23T18:56:45.306710Z",
"iopub.status.idle": "2025-10-23T18:56:45.313401Z",
"shell.execute_reply": "2025-10-23T18:56:45.312862Z",
"shell.execute_reply.started": "2025-10-23T18:56:45.307049Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"{'status': 'ok', 'restart': True}"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from IPython import get_ipython\n",
"get_ipython().kernel.do_shutdown(True)"
]
},
{
"cell_type": "markdown",
"id": "351d1369-51aa-47bb-800b-653b3a734a8a",
"metadata": {},
"source": [
"### Cell below displays the installed versions of Strands libraries\n",
"\n",
"As a result of the `pip installs` above, this cell outputs the current versions of Strands libraries"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "9c692e9f-7072-4f90-aa8e-eda90ab04b3d",
"metadata": {
"execution": {
"iopub.execute_input": "2025-10-23T18:56:45.315004Z",
"iopub.status.busy": "2025-10-23T18:56:45.314775Z",
"iopub.status.idle": "2025-10-23T18:56:46.730733Z",
"shell.execute_reply": "2025-10-23T18:56:46.730034Z",
"shell.execute_reply.started": "2025-10-23T18:56:45.314988Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Name: strands-agents\n",
"Version: 1.4.0\n",
"Summary: A model-driven approach to building AI agents in just a few lines of code\n",
"Home-page: https://github.com/strands-agents/sdk-python\n",
"Author: \n",
"Author-email: AWS <opensource@amazon.com>\n",
"License: Apache-2.0\n",
"Location: /opt/conda/lib/python3.12/site-packages\n",
"Requires: boto3, botocore, docstring-parser, mcp, opentelemetry-api, opentelemetry-instrumentation-threading, opentelemetry-sdk, pydantic, typing-extensions, watchdog\n",
"Required-by: strands-agents-builder, strands-agents-tools\n",
"---\n",
"Name: strands-agents-tools\n",
"Version: 0.2.12\n",
"Summary: A collection of specialized tools for Strands Agents\n",
"Home-page: https://github.com/strands-agents/tools\n",
"Author: \n",
"Author-email: AWS <opensource@amazon.com>\n",
"License: Apache-2.0\n",
"Location: /opt/conda/lib/python3.12/site-packages\n",
"Requires: aiohttp, aws-requests-auth, botocore, dill, markdownify, pillow, prompt-toolkit, pyjwt, requests, rich, slack-bolt, strands-agents, sympy, tenacity, typing-extensions, watchdog\n",
"Required-by: strands-agents-builder\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
"source": [
"%pip show strands-agents strands-agents-tools"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c9687e1a-9b01-4a48-ba06-c370158f1caf",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading