Skip to content

Commit 9b5531d

Browse files
committed
changed path to start from root folder
1 parent 2da1da8 commit 9b5531d

17 files changed

+179
-1106
lines changed

scripts/clean_notebook_output.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
# script to recursively go through all notebooks and clean the output cells
3-
find ../ -name "*.ipynb" -exec jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace {} \;
3+
find .. -name "*.ipynb" -exec jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace {} \;

tutorials/aries-basic-controller/notebooks/alice/Part 2 - Aries Basic Controller.ipynb

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,9 @@
150150
},
151151
{
152152
"cell_type": "code",
153-
"execution_count": 8,
153+
"execution_count": null,
154154
"metadata": {},
155-
"outputs": [
156-
{
157-
"name": "stderr",
158-
"output_type": "stream",
159-
"text": [
160-
"Unclosed client session\n",
161-
"client_session: <aiohttp.client.ClientSession object at 0x7fe1e2ded050>\n"
162-
]
163-
}
164-
],
155+
"outputs": [],
165156
"source": [
166157
"# Import the AriesAgentController class from the library\n",
167158
"from aries_basic_controller.aries_controller import AriesAgentController\n",
@@ -202,7 +193,7 @@
202193
},
203194
{
204195
"cell_type": "code",
205-
"execution_count": 3,
196+
"execution_count": null,
206197
"metadata": {},
207198
"outputs": [],
208199
"source": [
@@ -231,7 +222,7 @@
231222
},
232223
{
233224
"cell_type": "code",
234-
"execution_count": 5,
225+
"execution_count": null,
235226
"metadata": {},
236227
"outputs": [],
237228
"source": [
@@ -261,7 +252,7 @@
261252
},
262253
{
263254
"cell_type": "code",
264-
"execution_count": 9,
255+
"execution_count": null,
265256
"metadata": {},
266257
"outputs": [],
267258
"source": [

tutorials/aries-basic-controller/notebooks/alice/Part 3 - Establishing a Connection.ipynb

Lines changed: 14 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,9 @@
4545
},
4646
{
4747
"cell_type": "code",
48-
"execution_count": 2,
48+
"execution_count": null,
4949
"metadata": {},
50-
"outputs": [
51-
{
52-
"name": "stdout",
53-
"output_type": "stream",
54-
"text": [
55-
"IPython autoawait is `on`, and set to use `asyncio`\n"
56-
]
57-
}
58-
],
50+
"outputs": [],
5951
"source": [
6052
"%autoawait\n",
6153
"import time\n",
@@ -77,7 +69,7 @@
7769
},
7870
{
7971
"cell_type": "code",
80-
"execution_count": 3,
72+
"execution_count": null,
8173
"metadata": {},
8274
"outputs": [],
8375
"source": [
@@ -112,7 +104,7 @@
112104
},
113105
{
114106
"cell_type": "code",
115-
"execution_count": 4,
107+
"execution_count": null,
116108
"metadata": {},
117109
"outputs": [],
118110
"source": [
@@ -138,19 +130,9 @@
138130
},
139131
{
140132
"cell_type": "code",
141-
"execution_count": 6,
133+
"execution_count": null,
142134
"metadata": {},
143-
"outputs": [
144-
{
145-
"name": "stdout",
146-
"output_type": "stream",
147-
"text": [
148-
"Connection ID 08bbf913-275c-49c8-843f-f364dfb64a82\n",
149-
"Invitation\n",
150-
"{'@type': 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/invitation', '@id': '12940846-b7b1-4a05-9a50-b6585e44c983', 'label': 'Alice', 'serviceEndpoint': \"['http', 'http://172.17.0.1:8020']\", 'recipientKeys': ['2uwmVC2ixaWBd12kAYRqShhmUmqq8eyUu2nZxSSjigde']}\n"
151-
]
152-
}
153-
],
135+
"outputs": [],
154136
"source": [
155137
"# Create Invitation\n",
156138
"invite = await agent_controller.connections.create_invitation()\n",
@@ -185,24 +167,13 @@
185167
},
186168
{
187169
"cell_type": "code",
188-
"execution_count": 5,
170+
"execution_count": null,
189171
"metadata": {
190172
"pycharm": {
191173
"name": "#%%\n"
192174
}
193175
},
194-
"outputs": [
195-
{
196-
"name": "stdout",
197-
"output_type": "stream",
198-
"text": [
199-
"True\n",
200-
"ACCEPT REQUEST\n",
201-
"{'initiator': 'self', 'state': 'response', 'their_label': 'Bob', 'invitation_mode': 'once', 'my_did': 'NC8XUB5EicuUUqJACvSUdR', 'accept': 'manual', 'invitation_key': 'AGQrdCLtBbPPs5vX8K8RJrns9UyZLzvW5rvszNWrzq1V', 'created_at': '2020-09-16 15:08:58.841738Z', 'their_did': 'KbykKreVe4J8n5gizLmq4Z', 'routing_state': 'none', 'connection_id': 'c62331ca-bc95-4f7a-93dd-043f501cb21a', 'updated_at': '2020-09-16 15:11:48.372610Z'}\n",
202-
"state response\n"
203-
]
204-
}
205-
],
176+
"outputs": [],
206177
"source": [
207178
"# Accept Request for Invite created\n",
208179
"connection = await agent_controller.connections.accept_request(connection_id)\n",
@@ -224,21 +195,13 @@
224195
},
225196
{
226197
"cell_type": "code",
227-
"execution_count": 6,
198+
"execution_count": null,
228199
"metadata": {
229200
"pycharm": {
230201
"name": "#%%\n"
231202
}
232203
},
233-
"outputs": [
234-
{
235-
"name": "stdout",
236-
"output_type": "stream",
237-
"text": [
238-
"Trust Ping {'thread_id': '694105cd-305c-42ec-8c32-bf6ac5fcb868'}\n"
239-
]
240-
}
241-
],
204+
"outputs": [],
242205
"source": [
243206
"trust_ping = await agent_controller.messaging.trust_ping(connection_id, \"hello\")\n",
244207
"print(\"Trust Ping\", trust_ping)"
@@ -257,22 +220,13 @@
257220
},
258221
{
259222
"cell_type": "code",
260-
"execution_count": 7,
223+
"execution_count": null,
261224
"metadata": {
262225
"pycharm": {
263226
"name": "#%%\n"
264227
}
265228
},
266-
"outputs": [
267-
{
268-
"name": "stdout",
269-
"output_type": "stream",
270-
"text": [
271-
"{'initiator': 'self', 'state': 'active', 'their_label': 'Bob', 'invitation_mode': 'once', 'my_did': 'NC8XUB5EicuUUqJACvSUdR', 'accept': 'manual', 'invitation_key': 'AGQrdCLtBbPPs5vX8K8RJrns9UyZLzvW5rvszNWrzq1V', 'created_at': '2020-09-16 15:08:58.841738Z', 'their_did': 'KbykKreVe4J8n5gizLmq4Z', 'routing_state': 'none', 'connection_id': 'c62331ca-bc95-4f7a-93dd-043f501cb21a', 'updated_at': '2020-09-16 15:11:53.300639Z'}\n",
272-
"Is Active? active\n"
273-
]
274-
}
275-
],
229+
"outputs": [],
276230
"source": [
277231
"connection = await agent_controller.connections.get_connection(connection_id)\n",
278232
"print(connection)\n",
@@ -292,17 +246,9 @@
292246
},
293247
{
294248
"cell_type": "code",
295-
"execution_count": 30,
249+
"execution_count": null,
296250
"metadata": {},
297-
"outputs": [
298-
{
299-
"name": "stdout",
300-
"output_type": "stream",
301-
"text": [
302-
"None\n"
303-
]
304-
}
305-
],
251+
"outputs": [],
306252
"source": [
307253
"response = await agent_controller.terminate()\n",
308254
"print(response)"

tutorials/aries-basic-controller/notebooks/alice/Part 4 - Credential Schema and Definitions.ipynb

Lines changed: 14 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": 2,
31+
"execution_count": null,
3232
"metadata": {},
3333
"outputs": [],
3434
"source": [
@@ -58,7 +58,7 @@
5858
},
5959
{
6060
"cell_type": "code",
61-
"execution_count": 5,
61+
"execution_count": null,
6262
"metadata": {},
6363
"outputs": [],
6464
"source": [
@@ -81,17 +81,9 @@
8181
},
8282
{
8383
"cell_type": "code",
84-
"execution_count": 6,
84+
"execution_count": null,
8585
"metadata": {},
86-
"outputs": [
87-
{
88-
"name": "stdout",
89-
"output_type": "stream",
90-
"text": [
91-
"PQRXDxdGqQGSZ8z69p4xZP:2:alice_test_schema:0.0.2\n"
92-
]
93-
}
94-
],
86+
"outputs": [],
9587
"source": [
9688
"response = await agent_controller.schema.write_schema(schema_name, attributes, schema_version)\n",
9789
"schema_id = response[\"schema_id\"]\n",
@@ -187,17 +179,9 @@
187179
},
188180
{
189181
"cell_type": "code",
190-
"execution_count": 7,
182+
"execution_count": null,
191183
"metadata": {},
192-
"outputs": [
193-
{
194-
"name": "stdout",
195-
"output_type": "stream",
196-
"text": [
197-
"{'schema': {'ver': '1.0', 'id': 'PQRXDxdGqQGSZ8z69p4xZP:2:alice_test_schema:0.0.2', 'name': 'alice_test_schema', 'version': '0.0.2', 'attrNames': ['skill', 'name'], 'seqNo': 11}}\n"
198-
]
199-
}
200-
],
184+
"outputs": [],
201185
"source": [
202186
"schema = await agent_controller.schema.get_by_id(schema_id)\n",
203187
"print(schema)"
@@ -241,71 +225,39 @@
241225
},
242226
{
243227
"cell_type": "code",
244-
"execution_count": 8,
228+
"execution_count": null,
245229
"metadata": {},
246-
"outputs": [
247-
{
248-
"name": "stdout",
249-
"output_type": "stream",
250-
"text": [
251-
"{'schema_ids': ['PQRXDxdGqQGSZ8z69p4xZP:2:alice_test_schema:0.0.1', 'PQRXDxdGqQGSZ8z69p4xZP:2:alice_test_schema:0.0.2']}\n"
252-
]
253-
}
254-
],
230+
"outputs": [],
255231
"source": [
256232
"created_schema = await agent_controller.schema.get_created_schema()\n",
257233
"print(created_schema)"
258234
]
259235
},
260236
{
261237
"cell_type": "code",
262-
"execution_count": 9,
238+
"execution_count": null,
263239
"metadata": {},
264-
"outputs": [
265-
{
266-
"name": "stdout",
267-
"output_type": "stream",
268-
"text": [
269-
"{'schema_ids': ['PQRXDxdGqQGSZ8z69p4xZP:2:alice_test_schema:0.0.2']}\n"
270-
]
271-
}
272-
],
240+
"outputs": [],
273241
"source": [
274242
"created_schema = await agent_controller.schema.get_created_schema(schema_id=schema_id)\n",
275243
"print(created_schema)"
276244
]
277245
},
278246
{
279247
"cell_type": "code",
280-
"execution_count": 11,
248+
"execution_count": null,
281249
"metadata": {},
282-
"outputs": [
283-
{
284-
"name": "stdout",
285-
"output_type": "stream",
286-
"text": [
287-
"{'schema_ids': ['PQRXDxdGqQGSZ8z69p4xZP:2:alice_test_schema:0.0.1']}\n"
288-
]
289-
}
290-
],
250+
"outputs": [],
291251
"source": [
292252
"created_schema = await agent_controller.schema.get_created_schemas(schema_version='0.0.1')\n",
293253
"print(created_schema)"
294254
]
295255
},
296256
{
297257
"cell_type": "code",
298-
"execution_count": 13,
258+
"execution_count": null,
299259
"metadata": {},
300-
"outputs": [
301-
{
302-
"name": "stdout",
303-
"output_type": "stream",
304-
"text": [
305-
"{'schema_ids': []}\n"
306-
]
307-
}
308-
],
260+
"outputs": [],
309261
"source": [
310262
"\n",
311263
"created_schema = await agent_controller.schema.get_created_schema(schema_issuer_did='somerandomdid')\n",

0 commit comments

Comments
 (0)