Skip to content

Commit eedc034

Browse files
committed
Update take_the_tour.ipynb
1 parent 1efa41a commit eedc034

File tree

1 file changed

+42
-23
lines changed

1 file changed

+42
-23
lines changed

docs/jupyter/take_the_tour.ipynb

Lines changed: 42 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"cell_type": "code",
25-
"execution_count": 26,
25+
"execution_count": 1,
2626
"metadata": {},
2727
"outputs": [
2828
{
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"cell_type": "code",
71-
"execution_count": 27,
71+
"execution_count": 2,
7272
"metadata": {},
7373
"outputs": [],
7474
"source": [
@@ -103,7 +103,7 @@
103103
},
104104
{
105105
"cell_type": "code",
106-
"execution_count": 28,
106+
"execution_count": 3,
107107
"metadata": {},
108108
"outputs": [],
109109
"source": [
@@ -132,21 +132,21 @@
132132
},
133133
{
134134
"cell_type": "code",
135-
"execution_count": 29,
135+
"execution_count": 4,
136136
"metadata": {},
137137
"outputs": [
138138
{
139139
"name": "stdout",
140140
"output_type": "stream",
141141
"text": [
142142
"Tree<'Organization'>\n",
143-
"├── <__main__.Department object at 0x118c3fbc0>\n",
144-
"│ ├── <__main__.Department object at 0x118646c30>\n",
145-
"│ │ ╰── <__main__.Person object at 0x118c68170>\n",
146-
"│ ╰── <__main__.Person object at 0x118c3f770>\n",
147-
"├── <__main__.Department object at 0x118c3ffe0>\n",
148-
"│ ╰── <__main__.Person object at 0x118c68bf0>\n",
149-
"╰── <__main__.Person object at 0x118c3ffb0>\n"
143+
"├── <__main__.Department object at 0x106a66e40>\n",
144+
"│ ├── <__main__.Department object at 0x106a65610>\n",
145+
"│ │ ╰── <__main__.Person object at 0x10c02e4e0>\n",
146+
"│ ╰── <__main__.Person object at 0x10c02ede0>\n",
147+
"├── <__main__.Department object at 0x106a64170>\n",
148+
"│ ╰── <__main__.Person object at 0x10c02e5a0>\n",
149+
"╰── <__main__.Person object at 0x10c02e150>\n"
150150
]
151151
}
152152
],
@@ -183,7 +183,7 @@
183183
},
184184
{
185185
"cell_type": "code",
186-
"execution_count": 30,
186+
"execution_count": 5,
187187
"metadata": {},
188188
"outputs": [
189189
{
@@ -215,16 +215,16 @@
215215
},
216216
{
217217
"cell_type": "code",
218-
"execution_count": 31,
218+
"execution_count": 6,
219219
"metadata": {},
220220
"outputs": [
221221
{
222222
"data": {
223223
"text/plain": [
224-
"Node<'Person<Alice (25)>', data_id=294404091>"
224+
"Node<'Person<Alice (25)>', data_id=281030165>"
225225
]
226226
},
227-
"execution_count": 31,
227+
"execution_count": 6,
228228
"metadata": {},
229229
"output_type": "execute_result"
230230
}
@@ -243,16 +243,16 @@
243243
},
244244
{
245245
"cell_type": "code",
246-
"execution_count": 32,
246+
"execution_count": 7,
247247
"metadata": {},
248248
"outputs": [
249249
{
250250
"data": {
251251
"text/plain": [
252-
"<__main__.Person at 0x118c3ffb0>"
252+
"<__main__.Person at 0x10c02e150>"
253253
]
254254
},
255-
"execution_count": 32,
255+
"execution_count": 7,
256256
"metadata": {},
257257
"output_type": "execute_result"
258258
}
@@ -276,23 +276,42 @@
276276
},
277277
{
278278
"cell_type": "code",
279-
"execution_count": 33,
279+
"execution_count": 11,
280280
"metadata": {},
281281
"outputs": [
282282
{
283283
"data": {
284284
"text/plain": [
285-
"[Node<'Department<Development>', data_id=294404028>,\n",
286-
" Node<'Department<Marketing>', data_id=294404094>]"
285+
"'Department<Test>'"
287286
]
288287
},
289-
"execution_count": 33,
288+
"execution_count": 11,
289+
"metadata": {},
290+
"output_type": "execute_result"
291+
}
292+
],
293+
"source": [
294+
"str(tree[claire].parent.data)"
295+
]
296+
},
297+
{
298+
"cell_type": "code",
299+
"execution_count": 12,
300+
"metadata": {},
301+
"outputs": [
302+
{
303+
"data": {
304+
"text/plain": [
305+
"[Node<'Department<Development>', data_id=275408612>,\n",
306+
" Node<'Department<Marketing>', data_id=275407895>]"
307+
]
308+
},
309+
"execution_count": 12,
290310
"metadata": {},
291311
"output_type": "execute_result"
292312
}
293313
],
294314
"source": [
295-
"# tree[alice].parent.data\n",
296315
"tree[alice].get_siblings()"
297316
]
298317
},

0 commit comments

Comments
 (0)