Skip to content

Commit 7ef4c6f

Browse files
authored
[Quick-start] Hide stream for local quick start (#61)
1 parent b9cb0e1 commit 7ef4c6f

File tree

1 file changed

+5
-38
lines changed

1 file changed

+5
-38
lines changed

examples/tutorials/get-started/quickstart.ipynb

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,7 @@
158158
"outputs": [],
159159
"source": [
160160
"# create run with default variant\n",
161-
"base_run = pf.run(flow=flow, data=data)"
162-
]
163-
},
164-
{
165-
"cell_type": "code",
166-
"execution_count": null,
167-
"metadata": {},
168-
"outputs": [],
169-
"source": [
170-
"pf.stream(base_run)"
161+
"base_run = pf.run(flow=flow, data=data, stream=True)"
171162
]
172163
},
173164
{
@@ -213,18 +204,10 @@
213204
" \"groundtruth\": \"${data.answer}\",\n",
214205
" \"prediction\": \"${run.outputs.category}\",\n",
215206
" }, # map the url field from the data to the url input of the flow\n",
207+
" stream=True,\n",
216208
")"
217209
]
218210
},
219-
{
220-
"cell_type": "code",
221-
"execution_count": null,
222-
"metadata": {},
223-
"outputs": [],
224-
"source": [
225-
"pf.stream(eval_run)"
226-
]
227-
},
228211
{
229212
"cell_type": "code",
230213
"execution_count": null,
@@ -293,18 +276,10 @@
293276
" flow=flow,\n",
294277
" data=data,\n",
295278
" variant=\"${summarize_text_content.variant_1}\", # here we specify node \"summarize_text_content\" to use variant 1 verison.\n",
279+
" stream=True,\n",
296280
")"
297281
]
298282
},
299-
{
300-
"cell_type": "code",
301-
"execution_count": null,
302-
"metadata": {},
303-
"outputs": [],
304-
"source": [
305-
"pf.stream(variant_run)"
306-
]
307-
},
308283
{
309284
"cell_type": "code",
310285
"execution_count": null,
@@ -338,18 +313,10 @@
338313
" \"groundtruth\": \"${data.answer}\",\n",
339314
" \"prediction\": \"${run.outputs.category}\",\n",
340315
" }, # map the url field from the data to the url input of the flow\n",
316+
" stream=True,\n",
341317
")"
342318
]
343319
},
344-
{
345-
"cell_type": "code",
346-
"execution_count": null,
347-
"metadata": {},
348-
"outputs": [],
349-
"source": [
350-
"pf.stream(eval_run_variant)"
351-
]
352-
},
353320
{
354321
"cell_type": "code",
355322
"execution_count": null,
@@ -414,7 +381,7 @@
414381
"name": "python",
415382
"nbconvert_exporter": "python",
416383
"pygments_lexer": "ipython3",
417-
"version": "3.9.17"
384+
"version": "3.8.17"
418385
},
419386
"orig_nbformat": 4
420387
},

0 commit comments

Comments
 (0)