Skip to content

Commit 555f79c

Browse files
author
dscc-admin-ch
committed
1 parent 418baeb commit 555f79c

16 files changed

Lines changed: 258 additions & 132 deletions

html/develop/en/_sources/notebooks/Demo_Client_Notebook.ipynb.txt

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,19 @@
166166
},
167167
{
168168
"cell_type": "code",
169-
"execution_count": 1,
169+
"execution_count": 42,
170170
"id": "6fb569fc",
171171
"metadata": {},
172-
"outputs": [],
172+
"outputs": [
173+
{
174+
"name": "stdout",
175+
"output_type": "stream",
176+
"text": [
177+
"The autoreload extension is already loaded. To reload it, use:\n",
178+
" %reload_ext autoreload\n"
179+
]
180+
}
181+
],
173182
"source": [
174183
"%load_ext autoreload\n",
175184
"%autoreload 2\n",
@@ -197,7 +206,7 @@
197206
},
198207
{
199208
"cell_type": "code",
200-
"execution_count": 2,
209+
"execution_count": 43,
201210
"id": "85c53e7e",
202211
"metadata": {},
203212
"outputs": [],
@@ -207,29 +216,34 @@
207216
},
208217
{
209218
"cell_type": "code",
210-
"execution_count": 5,
219+
"execution_count": null,
211220
"id": "124ab531",
212221
"metadata": {},
213222
"outputs": [],
214223
"source": [
215224
"# The following would usually be set in the environment by a system administrator\n",
216225
"# and be tranparent to lomas users.\n",
217-
"APP_URL = \"http://lomas_server:48080\"\n",
218-
"APP_URL = \"http://localhost:48080\"\n",
226+
"APP_URL = \"http://localhost:48080\" # For local devenv setup\n",
227+
"# APP_URL = \"http://lomas_server:48080\" # For local docker compose setup\n",
228+
"# APP_URL = \"http://lomas-server.example.com:80\" # For Kubernetes deployment\n",
219229
"USER_NAME = \"Dr.Antartica\"\n",
220230
"\n",
221231
"import os\n",
222232
"os.environ[\"LOMAS_CLIENT_ID\"] = USER_NAME\n",
223233
"os.environ[\"LOMAS_CLIENT_SECRET\"] = USER_NAME.lower()\n",
224-
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"localhost\"\n",
225-
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"4442\"\n",
226-
"os.environ[\"LOMAS_KEYCLOAL_USE_TLS\"] = \"0\"\n",
234+
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"localhost\" # For local devenv setup\n",
235+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"keycloak\" # For local docker compose setup\n",
236+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"lomas-keycloak.example.com\" # For Kubernetes deployment \n",
237+
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"80\" # For local deployments\n",
238+
"# os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"443\" # For Kubernetes deployment\n",
239+
"os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"0\" # For local deployments\n",
240+
"# os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"1\" # For Kubernetes deployments\n",
227241
"os.environ[\"LOMAS_REALM\"] = \"lomas\""
228242
]
229243
},
230244
{
231245
"cell_type": "code",
232-
"execution_count": 6,
246+
"execution_count": 52,
233247
"id": "941991f7",
234248
"metadata": {},
235249
"outputs": [],
@@ -267,7 +281,7 @@
267281
},
268282
{
269283
"cell_type": "code",
270-
"execution_count": 8,
284+
"execution_count": 53,
271285
"id": "0fdebac9-57fc-4410-878b-5a77425af634",
272286
"metadata": {},
273287
"outputs": [
@@ -340,7 +354,7 @@
340354
" 'categories': ['MALE', 'FEMALE']}}}"
341355
]
342356
},
343-
"execution_count": 8,
357+
"execution_count": 53,
344358
"metadata": {},
345359
"output_type": "execute_result"
346360
}
@@ -360,7 +374,7 @@
360374
},
361375
{
362376
"cell_type": "code",
363-
"execution_count": 6,
377+
"execution_count": 7,
364378
"id": "8719c070-16a3-4228-a09f-944178aa1ba7",
365379
"metadata": {},
366380
"outputs": [],
@@ -385,7 +399,7 @@
385399
},
386400
{
387401
"cell_type": "code",
388-
"execution_count": 7,
402+
"execution_count": 8,
389403
"id": "01f4365a",
390404
"metadata": {},
391405
"outputs": [],
@@ -396,7 +410,7 @@
396410
},
397411
{
398412
"cell_type": "code",
399-
"execution_count": 8,
413+
"execution_count": 9,
400414
"id": "3f553b29",
401415
"metadata": {},
402416
"outputs": [
@@ -508,7 +522,7 @@
508522
"4 3614.604018 MALE "
509523
]
510524
},
511-
"execution_count": 8,
525+
"execution_count": 9,
512526
"metadata": {},
513527
"output_type": "execute_result"
514528
}
@@ -542,7 +556,7 @@
542556
},
543557
{
544558
"cell_type": "code",
545-
"execution_count": 9,
559+
"execution_count": 10,
546560
"id": "9bd99db9-9de9-4b25-8718-989fea27b15a",
547561
"metadata": {},
548562
"outputs": [
@@ -552,7 +566,7 @@
552566
"InitialBudgetResponse(initial_epsilon=10.0, initial_delta=0.005)"
553567
]
554568
},
555-
"execution_count": 9,
569+
"execution_count": 10,
556570
"metadata": {},
557571
"output_type": "execute_result"
558572
}
@@ -573,7 +587,7 @@
573587
},
574588
{
575589
"cell_type": "code",
576-
"execution_count": 10,
590+
"execution_count": 11,
577591
"id": "99a4dd26-53af-412e-bcd1-f06fff57e6a4",
578592
"metadata": {},
579593
"outputs": [
@@ -583,7 +597,7 @@
583597
"SpentBudgetResponse(total_spent_epsilon=0.0, total_spent_delta=0.0)"
584598
]
585599
},
586-
"execution_count": 10,
600+
"execution_count": 11,
587601
"metadata": {},
588602
"output_type": "execute_result"
589603
}
@@ -602,7 +616,7 @@
602616
},
603617
{
604618
"cell_type": "code",
605-
"execution_count": 11,
619+
"execution_count": 12,
606620
"id": "f67e0596-5f96-4c8b-a843-3fbaef02bab1",
607621
"metadata": {},
608622
"outputs": [
@@ -612,7 +626,7 @@
612626
"RemainingBudgetResponse(remaining_epsilon=10.0, remaining_delta=0.005)"
613627
]
614628
},
615-
"execution_count": 11,
629+
"execution_count": 12,
616630
"metadata": {},
617631
"output_type": "execute_result"
618632
}
@@ -671,7 +685,7 @@
671685
},
672686
{
673687
"cell_type": "code",
674-
"execution_count": 12,
688+
"execution_count": 13,
675689
"id": "a0de0cfa-af54-46f7-9144-8778fb1a66c5",
676690
"metadata": {},
677691
"outputs": [],
@@ -695,7 +709,7 @@
695709
},
696710
{
697711
"cell_type": "code",
698-
"execution_count": 13,
712+
"execution_count": 14,
699713
"id": "47663a1f-2b91-4f8a-8565-b3d7c9667e76",
700714
"metadata": {},
701715
"outputs": [],
@@ -706,7 +720,7 @@
706720
},
707721
{
708722
"cell_type": "code",
709-
"execution_count": 14,
723+
"execution_count": 15,
710724
"id": "e1a2b948-cf11-4325-a05e-147a0b4aaa30",
711725
"metadata": {},
712726
"outputs": [
@@ -716,7 +730,7 @@
716730
"CostResponse(epsilon=1.0, delta=4.999999999999449e-05)"
717731
]
718732
},
719-
"execution_count": 14,
733+
"execution_count": 15,
720734
"metadata": {},
721735
"output_type": "execute_result"
722736
}
@@ -3071,7 +3085,7 @@
30713085
],
30723086
"metadata": {
30733087
"kernelspec": {
3074-
"display_name": "Python 3 (ipykernel)",
3088+
"display_name": "venv",
30753089
"language": "python",
30763090
"name": "python3"
30773091
},

html/develop/en/_sources/notebooks/Demo_Client_Notebook_DiffPrivLib.ipynb.txt

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,28 @@
109109
},
110110
{
111111
"cell_type": "code",
112-
"execution_count": 3,
112+
"execution_count": null,
113113
"id": "300df93a-f3d5-4293-ba19-685633dd03ba",
114114
"metadata": {},
115115
"outputs": [],
116116
"source": [
117117
"# The following would usually be set in the environment by a system administrator\n",
118118
"# and be tranparent to lomas users.\n",
119-
"APP_URL = \"http://lomas_server\"\n",
119+
"APP_URL = \"http://localhost:48080\" # For local devenv setup\n",
120+
"# APP_URL = \"http://lomas_server:48080\" # For local docker compose setup\n",
121+
"# APP_URL = \"http://lomas-server.example.com:80\" # For Kubernetes deployment\n",
120122
"USER_NAME = \"Dr.Antartica\"\n",
123+
"\n",
121124
"import os\n",
122125
"os.environ[\"LOMAS_CLIENT_ID\"] = USER_NAME\n",
123126
"os.environ[\"LOMAS_CLIENT_SECRET\"] = USER_NAME.lower()\n",
124-
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"keycloak\"\n",
125-
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"8080\"\n",
126-
"os.environ[\"LOMAS_KEYCLOAL_USE_TLS\"] = \"0\"\n",
127+
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"localhost\" # For local devenv setup\n",
128+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"keycloak\" # For local docker compose setup\n",
129+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"lomas-keycloak.example.com\" # For Kubernetes deployment \n",
130+
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"80\" # For local deployments\n",
131+
"# os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"443\" # For Kubernetes deployment\n",
132+
"os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"0\" # For local deployments\n",
133+
"# os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"1\" # For Kubernetes deployments\n",
127134
"os.environ[\"LOMAS_REALM\"] = \"lomas\""
128135
]
129136
},

html/develop/en/_sources/notebooks/Demo_Client_Notebook_Smartnoise-SQL.ipynb.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,21 @@
116116
"source": [
117117
"# The following would usually be set in the environment by a system administrator\n",
118118
"# and be tranparent to lomas users.\n",
119-
"APP_URL = \"http://lomas_server\"\n",
119+
"APP_URL = \"http://localhost:48080\" # For local devenv setup\n",
120+
"# APP_URL = \"http://lomas_server:48080\" # For local docker compose setup\n",
121+
"# APP_URL = \"http://lomas-server.example.com:80\" # For Kubernetes deployment\n",
120122
"USER_NAME = \"Dr.Antartica\"\n",
123+
"\n",
121124
"import os\n",
122125
"os.environ[\"LOMAS_CLIENT_ID\"] = USER_NAME\n",
123126
"os.environ[\"LOMAS_CLIENT_SECRET\"] = USER_NAME.lower()\n",
124-
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"keycloak\"\n",
125-
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"8080\"\n",
126-
"os.environ[\"LOMAS_KEYCLOAL_USE_TLS\"] = \"0\"\n",
127+
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"localhost\" # For local devenv setup\n",
128+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"keycloak\" # For local docker compose setup\n",
129+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"lomas-keycloak.example.com\" # For Kubernetes deployment \n",
130+
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"80\" # For local deployments\n",
131+
"# os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"443\" # For Kubernetes deployment\n",
132+
"os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"0\" # For local deployments\n",
133+
"# os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"1\" # For Kubernetes deployments\n",
127134
"os.environ[\"LOMAS_REALM\"] = \"lomas\""
128135
]
129136
},

html/develop/en/_sources/notebooks/Demo_Client_Notebook_Smartnoise-Synth.ipynb.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,21 @@
108108
"source": [
109109
"# The following would usually be set in the environment by a system administrator\n",
110110
"# and be tranparent to lomas users.\n",
111-
"APP_URL = \"http://lomas_server\"\n",
111+
"APP_URL = \"http://localhost:48080\" # For local devenv setup\n",
112+
"# APP_URL = \"http://lomas_server:48080\" # For local docker compose setup\n",
113+
"# APP_URL = \"http://lomas-server.example.com:80\" # For Kubernetes deployment\n",
112114
"USER_NAME = \"Dr.Antartica\"\n",
115+
"\n",
113116
"import os\n",
114117
"os.environ[\"LOMAS_CLIENT_ID\"] = USER_NAME\n",
115118
"os.environ[\"LOMAS_CLIENT_SECRET\"] = USER_NAME.lower()\n",
116-
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"keycloak\"\n",
117-
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"8080\"\n",
118-
"os.environ[\"LOMAS_KEYCLOAL_USE_TLS\"] = \"0\"\n",
119+
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"localhost\" # For local devenv setup\n",
120+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"keycloak\" # For local docker compose setup\n",
121+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"lomas-keycloak.example.com\" # For Kubernetes deployment \n",
122+
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"80\" # For local deployments\n",
123+
"# os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"443\" # For Kubernetes deployment\n",
124+
"os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"0\" # For local deployments\n",
125+
"# os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"1\" # For Kubernetes deployments\n",
119126
"os.environ[\"LOMAS_REALM\"] = \"lomas\""
120127
]
121128
},

html/develop/en/_sources/notebooks/s3_example_notebook.ipynb.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,21 @@
137137
"source": [
138138
"# The following would usually be set in the environment by a system administrator\n",
139139
"# and be tranparent to lomas users.\n",
140-
"APP_URL = \"http://lomas_server\"\n",
140+
"APP_URL = \"http://localhost:48080\" # For local devenv setup\n",
141+
"# APP_URL = \"http://lomas_server:48080\" # For local docker compose setup\n",
142+
"# APP_URL = \"http://lomas-server.example.com:80\" # For Kubernetes deployment\n",
141143
"USER_NAME = \"Jack\"\n",
144+
"\n",
142145
"import os\n",
143146
"os.environ[\"LOMAS_CLIENT_ID\"] = USER_NAME\n",
144147
"os.environ[\"LOMAS_CLIENT_SECRET\"] = USER_NAME.lower()\n",
145-
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"keycloak\"\n",
146-
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"8080\"\n",
147-
"os.environ[\"LOMAS_KEYCLOAL_USE_TLS\"] = \"0\"\n",
148+
"os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"localhost\" # For local devenv setup\n",
149+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"keycloak\" # For local docker compose setup\n",
150+
"# os.environ[\"LOMAS_KEYCLOAK_ADDRESS\"] = \"lomas-keycloak.example.com\" # For Kubernetes deployment \n",
151+
"os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"80\" # For local deployments\n",
152+
"# os.environ[\"LOMAS_KEYCLOAK_PORT\"] = \"443\" # For Kubernetes deployment\n",
153+
"os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"0\" # For local deployments\n",
154+
"# os.environ[\"LOMAS_KEYCLOAK_USE_TLS\"] = \"1\" # For Kubernetes deployments\n",
148155
"os.environ[\"LOMAS_REALM\"] = \"lomas\""
149156
]
150157
},

0 commit comments

Comments
 (0)