Skip to content

Commit

Permalink
trying to set env variables first
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaGarson committed Apr 30, 2024
1 parent a0a329b commit c0f45b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions notebooks/esql/celtics-esql-demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@
],
"source": [
"# Create an Elasticsearch client instance\n",
"ELASTIC_HOST = getpass(\"Host: \")\n",
"ELASTIC_API_KEY = getpass(\"API Key: \")\n",
"\n",
"client = Elasticsearch(\n",
" host=getpass(\"Host: \"),\n",
" api_key=getpass(\"API Key: \"), # Securely get the API key for authentication\n",
" host=ELASTIC_HOST,\n",
" api_key=ELASTIC_API_KEY,\n",
")"
]
},
Expand Down

0 comments on commit c0f45b3

Please sign in to comment.