Skip to content

Commit ab24bd8

Browse files
committed
outputs
1 parent d93caae commit ab24bd8

File tree

8 files changed

+124
-78
lines changed

8 files changed

+124
-78
lines changed

nbs/api/02_maker.ipynb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -569,17 +569,17 @@
569569
"```python\n",
570570
"# AUTOGENERATED! DO NOT EDIT! File to edit: ../../04_export.ipynb.\n",
571571
"\n",
572-
"# %% ../../04_export.ipynb 0\n",
572+
"# %% ../../04_export.ipynb #73b66309\n",
573573
"from __future__ import print_function\n",
574574
"\n",
575-
"# %% auto 0\n",
575+
"# %% auto #0\n",
576576
"__all__ = ['b']\n",
577577
"\n",
578-
"# %% ../../04_export.ipynb\n",
578+
"# %% ../../04_export.ipynb #c168485a\n",
579579
"#| export\n",
580580
"def a(): ...\n",
581581
"\n",
582-
"# %% ../../04_export.ipynb\n",
582+
"# %% ../../04_export.ipynb #94c4db18\n",
583583
"def b(): ...\n",
584584
"\n",
585585
"```"
@@ -649,14 +649,14 @@
649649
"```python\n",
650650
"# AUTOGENERATED! DO NOT EDIT! File to edit: ../../01_export.ipynb.\n",
651651
"\n",
652-
"# %% ../../01_export.ipynb\n",
652+
"# %% ../../01_export.ipynb #cfd87ddf\n",
653653
"from __future__ import print_function\n",
654654
"\n",
655-
"# %% ../../01_export.ipynb\n",
655+
"# %% ../../01_export.ipynb #23244dea\n",
656656
"#| export\n",
657657
"def a(): ...\n",
658658
"\n",
659-
"# %% ../../01_export.ipynb\n",
659+
"# %% ../../01_export.ipynb #c710d552\n",
660660
"#| export\n",
661661
"class A:\n",
662662
"\n",
@@ -729,23 +729,23 @@
729729
"```python\n",
730730
"# AUTOGENERATED! DO NOT EDIT! File to edit: ../../04_export.ipynb.\n",
731731
"\n",
732-
"# %% ../../04_export.ipynb 0\n",
732+
"# %% ../../04_export.ipynb #73b66309\n",
733733
"from __future__ import print_function\n",
734734
"\n",
735-
"# %% auto 0\n",
735+
"# %% auto #0\n",
736736
"__all__ = ['b', 'c', 'd']\n",
737737
"\n",
738-
"# %% ../../04_export.ipynb\n",
738+
"# %% ../../04_export.ipynb #c168485a\n",
739739
"#| export\n",
740740
"def a(): ...\n",
741741
"\n",
742-
"# %% ../../04_export.ipynb\n",
742+
"# %% ../../04_export.ipynb #94c4db18\n",
743743
"def b(): ...\n",
744744
"\n",
745-
"# %% ../../04_export.ipynb 0\n",
745+
"# %% ../../04_export.ipynb #e53b62a7\n",
746746
"def c(): ...\n",
747747
"\n",
748-
"# %% ../../04_export.ipynb 1\n",
748+
"# %% ../../04_export.ipynb #90b96fb2\n",
749749
"def d(): ...\n",
750750
"```"
751751
],

nbs/api/05_doclinks.ipynb

Lines changed: 49 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,14 @@
453453
"id": "9ed99190",
454454
"metadata": {},
455455
"outputs": [
456+
{
457+
"name": "stderr",
458+
"output_type": "stream",
459+
"text": [
460+
"<ipython-input-1-3feceb085160>:9: RemovedInSphinx10Warning: The tuple interface for _InventoryItem objects is deprecated. Please access the `project_name`, `project_version`, `uri`, and `displayname` attributes directly.\n",
461+
" _get = lambda o: {k:v[2] for k,v in idx[f'py:{o}'].items() if k[0]!='_'}\n"
462+
]
463+
},
456464
{
457465
"data": {
458466
"text/plain": [
@@ -793,18 +801,26 @@
793801
"\n",
794802
"### NbdevLookup.doc\n",
795803
"\n",
796-
"> NbdevLookup.doc (sym)\n",
804+
"```python\n",
805+
"\n",
806+
"def doc(\n",
807+
" sym\n",
808+
"):\n",
809+
"\n",
810+
"\n",
811+
"```\n",
797812
"\n",
798813
"*Link to docs for `sym`*"
799814
],
800815
"text/plain": [
801-
"---\n",
816+
"```python\n",
802817
"\n",
803-
"[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/doclinks.py#L273){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
818+
"def doc(\n",
819+
" sym\n",
820+
"):\n",
804821
"\n",
805-
"### NbdevLookup.doc\n",
806822
"\n",
807-
"> NbdevLookup.doc (sym)\n",
823+
"```\n",
808824
"\n",
809825
"*Link to docs for `sym`*"
810826
]
@@ -890,22 +906,30 @@
890906
"text/markdown": [
891907
"---\n",
892908
"\n",
893-
"[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/doclinks.py#L274){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
909+
"[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/doclinks.py#L278){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
894910
"\n",
895911
"### NbdevLookup.code\n",
896912
"\n",
897-
"> NbdevLookup.code (sym)\n",
913+
"```python\n",
914+
"\n",
915+
"def code(\n",
916+
" sym\n",
917+
"):\n",
918+
"\n",
919+
"\n",
920+
"```\n",
898921
"\n",
899922
"*Link to source code for `sym`*"
900923
],
901924
"text/plain": [
902-
"---\n",
925+
"```python\n",
903926
"\n",
904-
"[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/doclinks.py#L274){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
927+
"def code(\n",
928+
" sym\n",
929+
"):\n",
905930
"\n",
906-
"### NbdevLookup.code\n",
907931
"\n",
908-
"> NbdevLookup.code (sym)\n",
932+
"```\n",
909933
"\n",
910934
"*Link to source code for `sym`*"
911935
]
@@ -951,20 +975,28 @@
951975
"text/markdown": [
952976
"---\n",
953977
"\n",
954-
"[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/doclinks.py#L292){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
978+
"[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/doclinks.py#L296){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
955979
"\n",
956980
"### NbdevLookup.linkify\n",
957981
"\n",
958-
"> NbdevLookup.linkify (md)"
982+
"```python\n",
983+
"\n",
984+
"def linkify(\n",
985+
" md\n",
986+
"):\n",
987+
"\n",
988+
"\n",
989+
"```"
959990
],
960991
"text/plain": [
961-
"---\n",
992+
"```python\n",
962993
"\n",
963-
"[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/doclinks.py#L292){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
994+
"def linkify(\n",
995+
" md\n",
996+
"):\n",
964997
"\n",
965-
"### NbdevLookup.linkify\n",
966998
"\n",
967-
"> NbdevLookup.linkify (md)"
999+
"```"
9681000
]
9691001
},
9701002
"execution_count": null,

nbs/api/07_merge.ipynb

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,10 @@
291291
{
292292
"data": {
293293
"text/markdown": [
294-
"```json\n",
294+
"```python\n",
295295
"{ 'cells': [ { 'cell_type': 'code',\n",
296296
" 'execution_count': 6,\n",
297+
" 'id': 'c775482c',\n",
297298
" 'idx_': 0,\n",
298299
" 'metadata': {},\n",
299300
" 'outputs': [ { 'data': {'text/plain': ['3']},\n",
@@ -303,6 +304,7 @@
303304
" 'source': 'z=3\\nz'},\n",
304305
" { 'cell_type': 'code',\n",
305306
" 'execution_count': 5,\n",
307+
" 'id': '0b0146a1',\n",
306308
" 'idx_': 1,\n",
307309
" 'metadata': {},\n",
308310
" 'outputs': [ { 'data': {'text/plain': ['6']},\n",
@@ -312,6 +314,7 @@
312314
" 'source': 'x=3\\ny=3\\nx+y'},\n",
313315
" { 'cell_type': 'code',\n",
314316
" 'execution_count': None,\n",
317+
" 'id': '087dbc0b',\n",
315318
" 'idx_': 2,\n",
316319
" 'metadata': {},\n",
317320
" 'outputs': [],\n",
@@ -332,7 +335,8 @@
332335
" 'metadata': {},\n",
333336
" 'output_type': 'execute_result'}],\n",
334337
" 'source': 'z=3\\nz',\n",
335-
" 'idx_': 0},\n",
338+
" 'idx_': 0,\n",
339+
" 'id': 'c775482c'},\n",
336340
" {'cell_type': 'code',\n",
337341
" 'execution_count': 5,\n",
338342
" 'metadata': {},\n",
@@ -341,13 +345,15 @@
341345
" 'metadata': {},\n",
342346
" 'output_type': 'execute_result'}],\n",
343347
" 'source': 'x=3\\ny=3\\nx+y',\n",
344-
" 'idx_': 1},\n",
348+
" 'idx_': 1,\n",
349+
" 'id': '0b0146a1'},\n",
345350
" {'cell_type': 'code',\n",
346351
" 'execution_count': None,\n",
347352
" 'metadata': {},\n",
348353
" 'outputs': [],\n",
349354
" 'source': '',\n",
350-
" 'idx_': 2}],\n",
355+
" 'idx_': 2,\n",
356+
" 'id': '087dbc0b'}],\n",
351357
" 'metadata': {'kernelspec': {'display_name': 'Python 3',\n",
352358
" 'language': 'python',\n",
353359
" 'name': 'python3'}},\n",
@@ -374,9 +380,10 @@
374380
{
375381
"data": {
376382
"text/markdown": [
377-
"```json\n",
383+
"```python\n",
378384
"{ 'cells': [ { 'cell_type': 'code',\n",
379385
" 'execution_count': 6,\n",
386+
" 'id': '90b66bf4',\n",
380387
" 'idx_': 0,\n",
381388
" 'metadata': {},\n",
382389
" 'outputs': [ { 'data': {'text/plain': ['3']},\n",
@@ -386,6 +393,7 @@
386393
" 'source': 'z=2\\nz'},\n",
387394
" { 'cell_type': 'code',\n",
388395
" 'execution_count': 5,\n",
396+
" 'id': '308e213e',\n",
389397
" 'idx_': 1,\n",
390398
" 'metadata': {},\n",
391399
" 'outputs': [ { 'data': {'text/plain': ['6']},\n",
@@ -395,6 +403,7 @@
395403
" 'source': 'x=3\\ny=3\\nx+y'},\n",
396404
" { 'cell_type': 'code',\n",
397405
" 'execution_count': None,\n",
406+
" 'id': '130e4ce0',\n",
398407
" 'idx_': 2,\n",
399408
" 'metadata': {},\n",
400409
" 'outputs': [],\n",
@@ -415,7 +424,8 @@
415424
" 'metadata': {},\n",
416425
" 'output_type': 'execute_result'}],\n",
417426
" 'source': 'z=2\\nz',\n",
418-
" 'idx_': 0},\n",
427+
" 'idx_': 0,\n",
428+
" 'id': '90b66bf4'},\n",
419429
" {'cell_type': 'code',\n",
420430
" 'execution_count': 5,\n",
421431
" 'metadata': {},\n",
@@ -424,13 +434,15 @@
424434
" 'metadata': {},\n",
425435
" 'output_type': 'execute_result'}],\n",
426436
" 'source': 'x=3\\ny=3\\nx+y',\n",
427-
" 'idx_': 1},\n",
437+
" 'idx_': 1,\n",
438+
" 'id': '308e213e'},\n",
428439
" {'cell_type': 'code',\n",
429440
" 'execution_count': None,\n",
430441
" 'metadata': {},\n",
431442
" 'outputs': [],\n",
432443
" 'source': '',\n",
433-
" 'idx_': 2}],\n",
444+
" 'idx_': 2,\n",
445+
" 'id': '130e4ce0'}],\n",
434446
" 'metadata': {'kernelspec': {'display_name': 'Python 3',\n",
435447
" 'language': 'python',\n",
436448
" 'name': 'python3'}},\n",

nbs/api/08_showdoc.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"\n",
156156
"def f(\n",
157157
" x:int=1, # the parameter x\n",
158-
")->None: # this function doesn't return anything\n",
158+
"): # this function doesn't return anything\n",
159159
"\n",
160160
"\n",
161161
"```\n",
@@ -169,7 +169,7 @@
169169
"\n",
170170
"def f(\n",
171171
" x:int=1, # the parameter x\n",
172-
")->None: # this function doesn't return anything\n",
172+
"): # this function doesn't return anything\n",
173173
"\n",
174174
"\n",
175175
"```\n",
@@ -456,7 +456,7 @@
456456
"def show_doc(\n",
457457
" sym, # Symbol to document\n",
458458
" renderer:NoneType=None, # Optional renderer (defaults to markdown)\n",
459-
" name:str \\| None=None, # Optionally override displayed name of `sym`\n",
459+
" name:str | None=None, # Optionally override displayed name of `sym`\n",
460460
" title_level:int=3, # Heading level to use for symbol name\n",
461461
"):\n",
462462
"\n",
@@ -471,7 +471,7 @@
471471
"def show_doc(\n",
472472
" sym, # Symbol to document\n",
473473
" renderer:NoneType=None, # Optional renderer (defaults to markdown)\n",
474-
" name:str \\| None=None, # Optionally override displayed name of `sym`\n",
474+
" name:str | None=None, # Optionally override displayed name of `sym`\n",
475475
" title_level:int=3, # Heading level to use for symbol name\n",
476476
"):\n",
477477
"\n",

nbs/api/11_clean.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
{
370370
"data": {
371371
"text/plain": [
372-
"'183ecbfa'"
372+
"'b3c0571e'"
373373
]
374374
},
375375
"execution_count": null,

0 commit comments

Comments
 (0)