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/08_showdoc.ipynb
+4-48Lines changed: 4 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -227,7 +227,7 @@
227
227
"| **Returns** | **int** | | |"
228
228
],
229
229
"text/plain": [
230
-
"<__main__.DocmentTbl at 0x7fc8d5d35e20>"
230
+
"<__main__.DocmentTbl at 0x120766a90>"
231
231
]
232
232
},
233
233
"execution_count": null,
@@ -289,7 +289,7 @@
289
289
"| c | param c |"
290
290
],
291
291
"text/plain": [
292
-
"<__main__.DocmentTbl at 0x7fc8d5d355b0>"
292
+
"<__main__.DocmentTbl at 0x120766850>"
293
293
]
294
294
},
295
295
"execution_count": null,
@@ -371,7 +371,7 @@
371
371
"| c | str | None | |"
372
372
],
373
373
"text/plain": [
374
-
"<__main__.DocmentTbl at 0x7fc8d5d35820>"
374
+
"<__main__.DocmentTbl at 0x1207303d0>"
375
375
]
376
376
},
377
377
"execution_count": null,
@@ -406,7 +406,7 @@
406
406
"| d | bool | True | description of param d |"
407
407
],
408
408
"text/plain": [
409
-
"<__main__.DocmentTbl at 0x7fc8d5d35070>"
409
+
"<__main__.DocmentTbl at 0x120730f10>"
410
410
]
411
411
},
412
412
"execution_count": null,
@@ -558,50 +558,6 @@
558
558
"You can use `show_doc` to document apis of functions, classes or methods:"
559
559
]
560
560
},
561
-
{
562
-
"cell_type": "code",
563
-
"execution_count": null,
564
-
"id": "53a1bc00",
565
-
"metadata": {},
566
-
"outputs": [
567
-
{
568
-
"data": {
569
-
"text/markdown": [
570
-
"---\n",
571
-
"\n",
572
-
"#### f\n",
573
-
"\n",
574
-
"> f (x:int=1)\n",
575
-
"\n",
576
-
"func docstring"
577
-
],
578
-
"text/plain": [
579
-
"<__main__.BasicMarkdownRenderer at 0x7fc8d5c50220>"
580
-
]
581
-
},
582
-
"execution_count": null,
583
-
"metadata": {},
584
-
"output_type": "execute_result"
585
-
}
586
-
],
587
-
"source": [
588
-
"def f(x:int=1):\n",
589
-
"\"func docstring\"\n",
590
-
" ...\n",
591
-
"\n",
592
-
"show_doc(f)"
593
-
]
594
-
},
595
-
{
596
-
"cell_type": "markdown",
597
-
"id": "66a8dfcd-dc2b-41ce-9d35-5c35e040f25d",
598
-
"metadata": {},
599
-
"source": [
600
-
":::{.callout-warning}\n",
601
-
"If you are using a version of python that is older than 3.10, type hints might be rendered as strings when running `show_doc`. We recommend upgrading to python 3.10 locally if possible so you can preview docs without this artifact. We have set the version of python to be 3.10 `.github/workflows/deploy.yaml` for this reason as well.\n",
0 commit comments