Skip to content

Commit b399bf3

Browse files
committed
Make env vars work corss-platform
1 parent 68e13a6 commit b399bf3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

languages/python/jupyter_notebook/CipherStash-Getting-Started.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@
144144
},
145145
"outputs": [],
146146
"source": [
147-
"! stash clients create --dataset-id $CS_DATASET_ID cipherstash_getting_started_client"
147+
"import os\n",
148+
"! stash clients create --dataset-id {os.environ['CS_DATASET_ID']} cipherstash_getting_started_client"
148149
]
149150
},
150151
{
@@ -193,7 +194,8 @@
193194
"metadata": {},
194195
"outputs": [],
195196
"source": [
196-
"! yes | head -n 1 | stash datasets config upload --file dataset.yml --client-id $CS_CLIENT_ID --client-key $CS_CLIENT_KEY"
197+
"import os\n",
198+
"! yes | head -n 1 | stash datasets config upload --file dataset.yml --client-id {os.environ['CS_CLIENT_ID']} --client-key {os.environ['CS_CLIENT_KEY']}"
197199
]
198200
},
199201
{

0 commit comments

Comments
 (0)