Skip to content

Commit d204584

Browse files
committed
check for secrets
1 parent 126556b commit d204584

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

docs/user_guide/vectorizers_04.ipynb

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,11 @@
571571
"import os\n",
572572
"import getpass\n",
573573
"\n",
574-
"# Either set environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION\n",
575-
"# Or configure directly:\n",
576-
"os.environ[\"AWS_ACCESS_KEY_ID\"] = getpass.getpass(\"Enter AWS Access Key ID: \")\n",
577-
"os.environ[\"AWS_SECRET_ACCESS_KEY\"] = getpass.getpass(\"Enter AWS Secret Key: \")\n",
574+
"if \"AWS_ACCESS_KEY_ID\" not in os.environ:\n",
575+
" os.environ[\"AWS_ACCESS_KEY_ID\"] = getpass.getpass(\"Enter AWS Access Key ID: \")\n",
576+
"if \"AWS_SECRET_ACCESS_KEY\" not in os.environ:\n",
577+
" os.environ[\"AWS_SECRET_ACCESS_KEY\"] = getpass.getpass(\"Enter AWS Secret Key: \")\n",
578+
"\n",
578579
"os.environ[\"AWS_REGION\"] = \"us-east-1\" # Change as needed"
579580
]
580581
},
@@ -834,7 +835,7 @@
834835
],
835836
"metadata": {
836837
"kernelspec": {
837-
"display_name": "Python 3.8.13 ('redisvl2')",
838+
"display_name": "Python 3",
838839
"language": "python",
839840
"name": "python3"
840841
},
@@ -848,14 +849,9 @@
848849
"name": "python",
849850
"nbconvert_exporter": "python",
850851
"pygments_lexer": "ipython3",
851-
"version": "3.12.2"
852+
"version": "3.11.9"
852853
},
853-
"orig_nbformat": 4,
854-
"vscode": {
855-
"interpreter": {
856-
"hash": "9b1e6e9c2967143209c2f955cb869d1d3234f92dc4787f49f155f3abbdfb1316"
857-
}
858-
}
854+
"orig_nbformat": 4
859855
},
860856
"nbformat": 4,
861857
"nbformat_minor": 2

0 commit comments

Comments
 (0)