nbdev 3.3.7__tar.gz → 3.3.9__tar.gz
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-3.3.7/nbdev.egg-info → nbdev-3.3.9}/PKG-INFO +2 -2
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/__init__.py +1 -1
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/_modidx.py +1 -7
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/quarto.py +19 -20
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/test.py +3 -4
- {nbdev-3.3.7 → nbdev-3.3.9/nbdev.egg-info}/PKG-INFO +2 -2
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev.egg-info/requires.txt +1 -1
- {nbdev-3.3.7 → nbdev-3.3.9}/pyproject.toml +1 -1
- {nbdev-3.3.7 → nbdev-3.3.9}/CONTRIBUTING.md +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/LICENSE +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/MANIFEST.in +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/README.md +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/clean.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/cli.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/config.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/diff.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/doclinks.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/export.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/extract_attachments.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/frontmatter.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/imports.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/maker.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/merge.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/migrate.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/moddocs.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/process.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/processors.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/qmd.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/release.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/scrubmagics.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/serve.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/serve_drv.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/showdoc.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/skill.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev/sync.py +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev.egg-info/SOURCES.txt +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev.egg-info/dependency_links.txt +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev.egg-info/entry_points.txt +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/nbdev.egg-info/top_level.txt +0 -0
- {nbdev-3.3.7 → nbdev-3.3.9}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nbdev
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.9
|
|
4
4
|
Summary: Create delightful software with Jupyter Notebooks
|
|
5
5
|
Author-email: "Jeremy Howard and the fast.ai community" <j@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -16,7 +16,7 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
16
16
|
Requires-Python: >=3.10
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: fastcore>=2.2.
|
|
19
|
+
Requires-Dist: fastcore>=2.2.7
|
|
20
20
|
Requires-Dist: execnb>=0.2.11
|
|
21
21
|
Requires-Dist: astunparse
|
|
22
22
|
Requires-Dist: ghapi>=2.0.2
|
|
@@ -6,7 +6,7 @@ Modules:
|
|
|
6
6
|
- `nbdev.moddocs`: # Module docs: creating them from existing notebooks
|
|
7
7
|
- `nbdev.skill`: Author clear, executable nbdev notebooks where code, prose, examples, outputs, and tests form one coherent narrative."""
|
|
8
8
|
|
|
9
|
-
__version__ = "3.3.
|
|
9
|
+
__version__ = "3.3.9"
|
|
10
10
|
|
|
11
11
|
from .doclinks import nbdev_export
|
|
12
12
|
from .showdoc import show_doc
|
|
@@ -292,13 +292,6 @@ d = { 'settings': { 'branch': 'main',
|
|
|
292
292
|
'nbdev.quarto': { 'nbdev.quarto.IndentDumper': ('api/quarto.html#indentdumper', 'nbdev/quarto.py'),
|
|
293
293
|
'nbdev.quarto.IndentDumper.increase_indent': ( 'api/quarto.html#indentdumper.increase_indent',
|
|
294
294
|
'nbdev/quarto.py'),
|
|
295
|
-
'nbdev.quarto._SidebarYmlRemoved': ('api/quarto.html#_sidebarymlremoved', 'nbdev/quarto.py'),
|
|
296
|
-
'nbdev.quarto._SidebarYmlRemoved.__enter__': ( 'api/quarto.html#_sidebarymlremoved.__enter__',
|
|
297
|
-
'nbdev/quarto.py'),
|
|
298
|
-
'nbdev.quarto._SidebarYmlRemoved.__exit__': ( 'api/quarto.html#_sidebarymlremoved.__exit__',
|
|
299
|
-
'nbdev/quarto.py'),
|
|
300
|
-
'nbdev.quarto._SidebarYmlRemoved.__init__': ( 'api/quarto.html#_sidebarymlremoved.__init__',
|
|
301
|
-
'nbdev/quarto.py'),
|
|
302
295
|
'nbdev.quarto._chk_nbdev_yml': ('api/quarto.html#_chk_nbdev_yml', 'nbdev/quarto.py'),
|
|
303
296
|
'nbdev.quarto._copytree': ('api/quarto.html#_copytree', 'nbdev/quarto.py'),
|
|
304
297
|
'nbdev.quarto._doc_mtime_not_older': ('api/quarto.html#_doc_mtime_not_older', 'nbdev/quarto.py'),
|
|
@@ -315,6 +308,7 @@ d = { 'settings': { 'branch': 'main',
|
|
|
315
308
|
'nbdev.quarto._save_cached_readme': ('api/quarto.html#_save_cached_readme', 'nbdev/quarto.py'),
|
|
316
309
|
'nbdev.quarto._sort': ('api/quarto.html#_sort', 'nbdev/quarto.py'),
|
|
317
310
|
'nbdev.quarto._sprun': ('api/quarto.html#_sprun', 'nbdev/quarto.py'),
|
|
311
|
+
'nbdev.quarto._strip_sidebar': ('api/quarto.html#_strip_sidebar', 'nbdev/quarto.py'),
|
|
318
312
|
'nbdev.quarto.fs_watchdog': ('api/quarto.html#fs_watchdog', 'nbdev/quarto.py'),
|
|
319
313
|
'nbdev.quarto.install': ('api/quarto.html#install', 'nbdev/quarto.py'),
|
|
320
314
|
'nbdev.quarto.install_quarto': ('api/quarto.html#install_quarto', 'nbdev/quarto.py'),
|
|
@@ -236,17 +236,16 @@ def _doc_mtime_not_older(readme_path, readme_nb_path):
|
|
|
236
236
|
return readme_path.exists() and readme_path.stat().st_mtime>=readme_nb_path.stat().st_mtime
|
|
237
237
|
|
|
238
238
|
# %% ../nbs/api/14_quarto.ipynb #7b70b5c8
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
if self._moved: (self._path/'sidebar.yml.bak').rename(self._yml_path)
|
|
239
|
+
def _strip_sidebar(cache):
|
|
240
|
+
"Drop website sidebar config from the staged copy at `cache`, so single-doc renders skip nav resolution (see quarto-dev/quarto-cli#14757)"
|
|
241
|
+
p = Path(cache)/'_quarto.yml'
|
|
242
|
+
if not p.exists(): return
|
|
243
|
+
cfg = yaml.safe_load(p.read_text())
|
|
244
|
+
(cfg.get('website') or {}).pop('sidebar', None)
|
|
245
|
+
mf = cfg.get('metadata-files')
|
|
246
|
+
if mf and 'sidebar.yml' in mf: mf.remove('sidebar.yml')
|
|
247
|
+
(Path(cache)/'sidebar.yml').unlink(missing_ok=True)
|
|
248
|
+
p.write_text(yaml.dump(cfg, sort_keys=False))
|
|
250
249
|
|
|
251
250
|
# %% ../nbs/api/14_quarto.ipynb #49661bbf
|
|
252
251
|
def _copytree(a,b):
|
|
@@ -285,12 +284,12 @@ def nbdev_readme(
|
|
|
285
284
|
_chk_nbdev_yml(path)
|
|
286
285
|
if chk_time and _doc_mtime_not_older(cfg.config_path/'README.md', path/cfg.readme_nb): return
|
|
287
286
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
287
|
+
cache = proc_nbs(path, file_glob=Path(cfg.readme_nb).name)
|
|
288
|
+
_strip_sidebar(cache) # to avoid rendering whole website
|
|
289
|
+
for f in _readme_cands(cache, cfg):
|
|
290
|
+
if f.exists(): f.unlink() # remove stale renders from either quarto layout
|
|
291
|
+
_sprun(f'cd "{cache}" && quarto render "{cache/cfg.readme_nb}" -o README.md -t gfm --no-execute -M wrap:preserve')
|
|
292
|
+
|
|
294
293
|
_save_cached_readme(cache, cfg)
|
|
295
294
|
|
|
296
295
|
# %% ../nbs/api/14_quarto.ipynb #ef3f1e1f
|
|
@@ -319,9 +318,9 @@ def nbdev_contributing(
|
|
|
319
318
|
if not contrib_nb_path.exists(): return
|
|
320
319
|
if chk_time and _doc_mtime_not_older(cfg.config_path / 'CONTRIBUTING.md' , contrib_nb_path): return
|
|
321
320
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
321
|
+
cache = proc_nbs(path, file_glob=Path(contrib_nb_name).name)
|
|
322
|
+
_strip_sidebar(cache) # to avoid rendering whole website
|
|
323
|
+
_sprun(f'cd "{cache}" && quarto render "{cache/contrib_nb_name}" -o CONTRIBUTING.md -t gfm --no-execute -M wrap:preserve')
|
|
325
324
|
|
|
326
325
|
_save_cached_contributing(cache, cfg, contrib_nb_name)
|
|
327
326
|
|
|
@@ -48,12 +48,11 @@ async def test_nb(
|
|
|
48
48
|
fm = nb_frontmatter(nb)
|
|
49
49
|
if str2bool(fm.get('skip_exec', False)) or nb_lang(nb) != 'python': return True, 0
|
|
50
50
|
|
|
51
|
+
dflt = fm_default_eval(fm)
|
|
51
52
|
def _no_eval(cell):
|
|
52
53
|
if cell.cell_type != 'code': return True
|
|
53
|
-
if
|
|
54
|
-
|
|
55
|
-
if direc.get('eval', '').lower() == 'false': return True
|
|
56
|
-
return flags & direc.keys()
|
|
54
|
+
if not does_cell_eval(cell, dflt): return True
|
|
55
|
+
return flags & (getattr(cell, 'directives_', {}) or {}).keys()
|
|
57
56
|
|
|
58
57
|
start = time.time()
|
|
59
58
|
if profile is None: profile = bool(get_config(fn.parent).exec_profile)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nbdev
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.9
|
|
4
4
|
Summary: Create delightful software with Jupyter Notebooks
|
|
5
5
|
Author-email: "Jeremy Howard and the fast.ai community" <j@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -16,7 +16,7 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
16
16
|
Requires-Python: >=3.10
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: fastcore>=2.2.
|
|
19
|
+
Requires-Dist: fastcore>=2.2.7
|
|
20
20
|
Requires-Dist: execnb>=0.2.11
|
|
21
21
|
Requires-Dist: astunparse
|
|
22
22
|
Requires-Dist: ghapi>=2.0.2
|
|
@@ -19,7 +19,7 @@ classifiers = [
|
|
|
19
19
|
"License :: OSI Approved :: Apache Software License",
|
|
20
20
|
]
|
|
21
21
|
dynamic = ["version"]
|
|
22
|
-
dependencies = [ "fastcore>=2.2.
|
|
22
|
+
dependencies = [ "fastcore>=2.2.7", "execnb>=0.2.11", "astunparse", "ghapi>=2.0.2", "watchdog", "asttokens",
|
|
23
23
|
"setuptools", "build", "fastgit>=0.0.7", "pyyaml", "tomli; python_version < '3.11'", ]
|
|
24
24
|
|
|
25
25
|
[project.optional-dependencies]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|