You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nbs/07_script.ipynb
+2-24Lines changed: 2 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -350,30 +350,8 @@
350
350
"cell_type": "markdown",
351
351
"metadata": {},
352
352
"source": [
353
-
"### Test call parse function"
354
-
]
355
-
},
356
-
{
357
-
"cell_type": "markdown",
358
-
"metadata": {},
359
-
"source": [
360
-
"`call_parse` decorated functions work as regular functions and also as command-line interface functions."
361
-
]
362
-
},
363
-
{
364
-
"cell_type": "code",
365
-
"execution_count": null,
366
-
"metadata": {},
367
-
"outputs": [],
368
-
"source": [
369
-
"test_eq(os.system('test_fastcore.script \"Test if this still works\"'), 0)\n",
370
-
"test_eq(test_add(1,2), 3)"
371
-
]
372
-
},
373
-
{
374
-
"cell_type": "markdown",
375
-
"metadata": {},
376
-
"source": [
353
+
"`call_parse` decorated functions work as regular functions and also as command-line interface functions.\n",
354
+
"\n",
377
355
"This is the main way to use `fastcore.script`; decorate your function with `call_parse`, add `Param` annotations as shown above, and it can then be used as a script."
0 commit comments