Skip to content

Commit 2d36c59

Browse files
author
Olivier Davant
committed
Tutorials update
Quantitative Analytics URL updated to v1 3.2.01 Tutorial update to use await instead of run_until_complete
1 parent 709418e commit 2d36c59

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Tutorials/3.Delivery/3.2-Endpoint/TUT_3.2.01-EndPoint-Overview.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,8 +1685,8 @@
16851685
")\n",
16861686
"\n",
16871687
"# Wait for all tasks to be completed\n",
1688-
"asyncio.get_event_loop().run_until_complete(tasks)\n",
1689-
"ibm,bt = tasks._result"
1688+
"await tasks\n",
1689+
"ibm,bt = tasks.result()"
16901690
]
16911691
},
16921692
{
@@ -2078,9 +2078,9 @@
20782078
],
20792079
"metadata": {
20802080
"kernelspec": {
2081-
"display_name": "RevData39",
2081+
"display_name": "Python 3 (ipykernel)",
20822082
"language": "python",
2083-
"name": "rd39"
2083+
"name": "python3"
20842084
},
20852085
"language_info": {
20862086
"codemirror_mode": {
@@ -2092,7 +2092,7 @@
20922092
"name": "python",
20932093
"nbconvert_exporter": "python",
20942094
"pygments_lexer": "ipython3",
2095-
"version": "3.9.4"
2095+
"version": "3.9.7"
20962096
}
20972097
},
20982098
"nbformat": 4,

Tutorials/3.Delivery/3.2-Endpoint/TUT_3.2.03-EndPoint-IPA-FinancialContracts.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"outputs": [],
102102
"source": [
103103
"request_definition = rd.delivery.endpoint_request.Definition(\n",
104-
" url = \"/data/quantitative-analytics/beta1/financial-contracts\",\n",
104+
" url = \"/data/quantitative-analytics/v1/financial-contracts\",\n",
105105
" method = rd.delivery.endpoint_request.RequestMethod.POST,\n",
106106
" body_parameters = {\n",
107107
" \"fields\": [\n",
@@ -284,9 +284,9 @@
284284
],
285285
"metadata": {
286286
"kernelspec": {
287-
"display_name": "RevData39",
287+
"display_name": "Python 3 (ipykernel)",
288288
"language": "python",
289-
"name": "rd39"
289+
"name": "python3"
290290
},
291291
"language_info": {
292292
"codemirror_mode": {
@@ -298,7 +298,7 @@
298298
"name": "python",
299299
"nbconvert_exporter": "python",
300300
"pygments_lexer": "ipython3",
301-
"version": "3.9.4"
301+
"version": "3.9.7"
302302
}
303303
},
304304
"nbformat": 4,

0 commit comments

Comments
 (0)