nbdev 2.4.8__py3-none-any.whl → 2.4.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nbdev/__init__.py +1 -1
- nbdev/_modidx.py +1 -7
- nbdev/cli.py +5 -6
- nbdev/quarto.py +2 -2
- nbdev/showdoc.py +2 -48
- {nbdev-2.4.8.dist-info → nbdev-2.4.10.dist-info}/METADATA +2 -1
- {nbdev-2.4.8.dist-info → nbdev-2.4.10.dist-info}/RECORD +11 -11
- {nbdev-2.4.8.dist-info → nbdev-2.4.10.dist-info}/WHEEL +0 -0
- {nbdev-2.4.8.dist-info → nbdev-2.4.10.dist-info}/entry_points.txt +0 -0
- {nbdev-2.4.8.dist-info → nbdev-2.4.10.dist-info}/licenses/LICENSE +0 -0
- {nbdev-2.4.8.dist-info → nbdev-2.4.10.dist-info}/top_level.txt +0 -0
nbdev/__init__.py
CHANGED
nbdev/_modidx.py
CHANGED
|
@@ -322,16 +322,10 @@ d = { 'settings': { 'branch': 'main',
|
|
|
322
322
|
'nbdev.serve._proc_file': ('api/serve.html#_proc_file', 'nbdev/serve.py'),
|
|
323
323
|
'nbdev.serve.proc_nbs': ('api/serve.html#proc_nbs', 'nbdev/serve.py')},
|
|
324
324
|
'nbdev.serve_drv': {},
|
|
325
|
-
'nbdev.showdoc': { 'nbdev.showdoc.
|
|
326
|
-
'nbdev.showdoc.BasicHtmlRenderer._repr_html_': ( 'api/showdoc.html#basichtmlrenderer._repr_html_',
|
|
327
|
-
'nbdev/showdoc.py'),
|
|
328
|
-
'nbdev.showdoc.BasicHtmlRenderer.doc': ('api/showdoc.html#basichtmlrenderer.doc', 'nbdev/showdoc.py'),
|
|
329
|
-
'nbdev.showdoc.BasicMarkdownRenderer': ('api/showdoc.html#basicmarkdownrenderer', 'nbdev/showdoc.py'),
|
|
325
|
+
'nbdev.showdoc': { 'nbdev.showdoc.BasicMarkdownRenderer': ('api/showdoc.html#basicmarkdownrenderer', 'nbdev/showdoc.py'),
|
|
330
326
|
'nbdev.showdoc.BasicMarkdownRenderer._repr_markdown_': ( 'api/showdoc.html#basicmarkdownrenderer._repr_markdown_',
|
|
331
327
|
'nbdev/showdoc.py'),
|
|
332
|
-
'nbdev.showdoc._create_html_table': ('api/showdoc.html#_create_html_table', 'nbdev/showdoc.py'),
|
|
333
328
|
'nbdev.showdoc._ext_link': ('api/showdoc.html#_ext_link', 'nbdev/showdoc.py'),
|
|
334
|
-
'nbdev.showdoc._html_link': ('api/showdoc.html#_html_link', 'nbdev/showdoc.py'),
|
|
335
329
|
'nbdev.showdoc.colab_link': ('api/showdoc.html#colab_link', 'nbdev/showdoc.py'),
|
|
336
330
|
'nbdev.showdoc.doc': ('api/showdoc.html#doc', 'nbdev/showdoc.py'),
|
|
337
331
|
'nbdev.showdoc.show_doc': ('api/showdoc.html#show_doc', 'nbdev/showdoc.py'),
|
nbdev/cli.py
CHANGED
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/api/13_cli.ipynb.
|
|
4
4
|
|
|
5
|
-
# %%
|
|
6
|
-
|
|
5
|
+
# %% auto 0
|
|
6
|
+
__all__ = ['mapping', 'nbdev_filter', 'extract_tgz', 'nbdev_new', 'nbdev_update_license', 'nb_export_cli', 'watch_export',
|
|
7
|
+
'chelp']
|
|
8
|
+
|
|
9
|
+
# %% ../nbs/api/13_cli.ipynb
|
|
7
10
|
import warnings
|
|
8
11
|
import time
|
|
9
12
|
|
|
@@ -29,10 +32,6 @@ from urllib.error import HTTPError
|
|
|
29
32
|
from contextlib import redirect_stdout
|
|
30
33
|
import os, tarfile, sys
|
|
31
34
|
|
|
32
|
-
# %% auto 0
|
|
33
|
-
__all__ = ['mapping', 'nbdev_filter', 'extract_tgz', 'nbdev_new', 'nbdev_update_license', 'nb_export_cli', 'watch_export',
|
|
34
|
-
'chelp']
|
|
35
|
-
|
|
36
35
|
# %% ../nbs/api/13_cli.ipynb
|
|
37
36
|
@call_parse
|
|
38
37
|
def nbdev_filter(
|
nbdev/quarto.py
CHANGED
|
@@ -70,10 +70,10 @@ def _sort(a):
|
|
|
70
70
|
x,y = a
|
|
71
71
|
if y.startswith('index.'): return x,'00'
|
|
72
72
|
return a
|
|
73
|
-
|
|
73
|
+
|
|
74
74
|
_def_file_re = r'\.(?:ipynb|qmd|html)$'
|
|
75
75
|
|
|
76
|
-
@delegates
|
|
76
|
+
@delegates
|
|
77
77
|
def _nbglob_docs(
|
|
78
78
|
path:str=None, # Path to notebooks
|
|
79
79
|
file_glob:str=None, # Only include files matching glob
|
nbdev/showdoc.py
CHANGED
|
@@ -17,7 +17,7 @@ from textwrap import fill
|
|
|
17
17
|
from types import FunctionType
|
|
18
18
|
|
|
19
19
|
# %% auto 0
|
|
20
|
-
__all__ = ['BasicMarkdownRenderer', 'show_doc', '
|
|
20
|
+
__all__ = ['BasicMarkdownRenderer', 'show_doc', 'doc', 'showdoc_nm', 'colab_link']
|
|
21
21
|
|
|
22
22
|
# %% ../nbs/api/08_showdoc.ipynb
|
|
23
23
|
def _ext_link(url, txt, xtra=""): return f'[{txt}]({url}){{target="_blank" {xtra}}}'
|
|
@@ -47,56 +47,10 @@ def show_doc(sym, # Symbol to document
|
|
|
47
47
|
elif isinstance_str(sym, "TypeDispatch"): pass # use _str as TypeDispatch will be removed from fastcore
|
|
48
48
|
else:return renderer(sym or show_doc, name=name, title_level=title_level)
|
|
49
49
|
|
|
50
|
-
# %% ../nbs/api/08_showdoc.ipynb
|
|
51
|
-
def _create_html_table(table_str):
|
|
52
|
-
def split_row(row):
|
|
53
|
-
return re.findall(r'\|(?:(?:\\.|[^|\\])*)', row)
|
|
54
|
-
|
|
55
|
-
def unescape_cell(cell):
|
|
56
|
-
return cell.strip(' *|').replace(r'\|', '|')
|
|
57
|
-
|
|
58
|
-
lines = table_str.strip().split('\n')
|
|
59
|
-
header = [f"<th>{unescape_cell(cell)}</th>" for cell in split_row(lines[0])]
|
|
60
|
-
rows = [[f"<td>{unescape_cell(cell)}</td>" for cell in split_row(line)] for line in lines[2:]]
|
|
61
|
-
|
|
62
|
-
return f'''<table>
|
|
63
|
-
<thead><tr>{' '.join(header)}</tr></thead>
|
|
64
|
-
<tbody>{''.join(f'<tr>{" ".join(row)}</tr>' for row in rows)}</tbody>
|
|
65
|
-
</table>'''
|
|
66
|
-
|
|
67
|
-
# %% ../nbs/api/08_showdoc.ipynb
|
|
68
|
-
def _html_link(url, txt): return f'<a href="{url}" target="_blank" rel="noreferrer noopener">{txt}</a>'
|
|
69
|
-
|
|
70
|
-
# %% ../nbs/api/08_showdoc.ipynb
|
|
71
|
-
from fastcore.docments import _fmt_sig
|
|
72
|
-
|
|
73
|
-
# %% ../nbs/api/08_showdoc.ipynb
|
|
74
|
-
class BasicHtmlRenderer(ShowDocRenderer):
|
|
75
|
-
"HTML renderer for `show_doc`"
|
|
76
|
-
def _repr_html_(self):
|
|
77
|
-
doc = '<hr/>\n'
|
|
78
|
-
src = NbdevLookup().code(self.fn)
|
|
79
|
-
doc += f'<h{self.title_level}>{self.nm}</h{self.title_level}>\n'
|
|
80
|
-
sig = _fmt_sig(self.sig) if self.sig else ''
|
|
81
|
-
# Escape < and > characters in the signature
|
|
82
|
-
sig = sig.replace('<', '<').replace('>', '>')
|
|
83
|
-
doc += f'<blockquote><pre><code>{self.nm} {sig}</code></pre></blockquote>'
|
|
84
|
-
if self.docs:
|
|
85
|
-
doc += f"<p><i>{self.docs}</i></p>"
|
|
86
|
-
if src: doc += f"<br/>{_html_link(src, 'source')}"
|
|
87
|
-
if self.dm.has_docment: doc += _create_html_table(str(self.dm))
|
|
88
|
-
return doc
|
|
89
|
-
|
|
90
|
-
def doc(self):
|
|
91
|
-
"Show `show_doc` info along with link to docs"
|
|
92
|
-
from IPython.display import display,HTML
|
|
93
|
-
res = self._repr_html_()
|
|
94
|
-
display(HTML(res))
|
|
95
|
-
|
|
96
50
|
# %% ../nbs/api/08_showdoc.ipynb
|
|
97
51
|
def doc(elt):
|
|
98
52
|
"Show `show_doc` info along with link to docs"
|
|
99
|
-
|
|
53
|
+
return BasicMarkdownRenderer(elt)
|
|
100
54
|
|
|
101
55
|
# %% ../nbs/api/08_showdoc.ipynb
|
|
102
56
|
def showdoc_nm(tree):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nbdev
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.10
|
|
4
4
|
Summary: Create delightful software with Jupyter Notebooks
|
|
5
5
|
Home-page: https://github.com/AnswerDotAI/nbdev
|
|
6
6
|
Author: Jeremy Howard and Hamel Husain
|
|
@@ -28,6 +28,7 @@ Requires-Dist: watchdog
|
|
|
28
28
|
Requires-Dist: asttokens
|
|
29
29
|
Requires-Dist: setuptools
|
|
30
30
|
Requires-Dist: build
|
|
31
|
+
Requires-Dist: fastgit
|
|
31
32
|
Requires-Dist: PyYAML
|
|
32
33
|
Provides-Extra: dev
|
|
33
34
|
Requires-Dist: ipywidgets; extra == "dev"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
nbdev/__init__.py,sha256=
|
|
2
|
-
nbdev/_modidx.py,sha256=
|
|
1
|
+
nbdev/__init__.py,sha256=6pmhzoYJxTVV23XmtU6yYznRmk1Lt_Yn1G7IKpaXyjU,90
|
|
2
|
+
nbdev/_modidx.py,sha256=v15TNw1xI8HShoTH1aNwH-Rt_c5-uYfcmf2nlNuSGFI,38256
|
|
3
3
|
nbdev/clean.py,sha256=Ge3Hke1c1ArJ9-6P-Z11dXUfnQ7ZrYRnHHXPTAbJG4I,9412
|
|
4
|
-
nbdev/cli.py,sha256=
|
|
4
|
+
nbdev/cli.py,sha256=ntu9hqDVD8t32AuveuJ-1xBGn_-KD3AUX1TG37K00w8,7309
|
|
5
5
|
nbdev/config.py,sha256=KmPAtLwsX819gA7TVJ40v-B4ok978b79pbqMF5WnAJE,13500
|
|
6
6
|
nbdev/diff.py,sha256=gSJNvjqbcuNlGD6d_BOlp7uQ0yLCLEfspCSIxOwnRuE,3713
|
|
7
7
|
nbdev/doclinks.py,sha256=fDnlqKaRHCBCS1CVbmqhGNsiaKeEMF2hS-pNFHc8JYE,12632
|
|
@@ -15,16 +15,16 @@ nbdev/migrate.py,sha256=YJTtWC6TPaZpZTcD0Jex6stOSumjju2QrUozF9rvl0Y,7311
|
|
|
15
15
|
nbdev/process.py,sha256=NZlJnGaEoDMNAROktBNbW5BAqX_tMyPOcDF5rP5HeZg,5854
|
|
16
16
|
nbdev/processors.py,sha256=fS4WrowC8bi6sFJJUVA9r9IRgmk-gffrJ9zNfb7vpIM,11973
|
|
17
17
|
nbdev/qmd.py,sha256=VAxE-c1sT7y26VdyreB6j9fge-CuLbHWocRE_WbnYXg,2994
|
|
18
|
-
nbdev/quarto.py,sha256=
|
|
18
|
+
nbdev/quarto.py,sha256=n6Pytml1gwpn45vNzoc4_JRPRkC4pYE3BiVRNODpBtI,13796
|
|
19
19
|
nbdev/release.py,sha256=Oxqz5X61Zgs9DILNn9h0Njr0Q21fc3XTWJQ8jeZ3Y44,14572
|
|
20
20
|
nbdev/serve.py,sha256=HcYoNQiSROdMS1J8YlOlyTya-LmmrR-8v3ho5D9g700,3146
|
|
21
21
|
nbdev/serve_drv.py,sha256=IZ2acem_KKsXYYe0iUECiR_orkYLBkT1ZG_258ZS7SQ,657
|
|
22
|
-
nbdev/showdoc.py,sha256=
|
|
22
|
+
nbdev/showdoc.py,sha256=BqbrmS2dUpfocRTtTu5tD7-EiQ07rxHoiZCETeMJEtc,2570
|
|
23
23
|
nbdev/sync.py,sha256=ld-lSOmlX1FdnTOzaSHcxKyIuIguI_SpluqfPSH2BZ8,3201
|
|
24
24
|
nbdev/test.py,sha256=_ECBd5fvfGEICIfkTI2S8w8YatL5CaPltCeDSsiH6yw,4435
|
|
25
|
-
nbdev-2.4.
|
|
26
|
-
nbdev-2.4.
|
|
27
|
-
nbdev-2.4.
|
|
28
|
-
nbdev-2.4.
|
|
29
|
-
nbdev-2.4.
|
|
30
|
-
nbdev-2.4.
|
|
25
|
+
nbdev-2.4.10.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
26
|
+
nbdev-2.4.10.dist-info/METADATA,sha256=X9nDa0z81SKL_GqX2I4Tv7m_AdYW-7JKpZQ8_01jA8c,10829
|
|
27
|
+
nbdev-2.4.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
28
|
+
nbdev-2.4.10.dist-info/entry_points.txt,sha256=1ADLbIIJxZeLgOD8NpizkPULSsd_fgUQxwAkbGk45b8,1453
|
|
29
|
+
nbdev-2.4.10.dist-info/top_level.txt,sha256=3cWYLMuaXsZjz3TQRGEkWGs9Z8ieEDmYcq8TZS3y3vU,6
|
|
30
|
+
nbdev-2.4.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|