nbdev 3.3.0__tar.gz → 3.3.1__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.
Files changed (40) hide show
  1. {nbdev-3.3.0/nbdev.egg-info → nbdev-3.3.1}/PKG-INFO +1 -1
  2. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/__init__.py +1 -1
  3. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/clean.py +1 -1
  4. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/process.py +1 -1
  5. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/release.py +1 -1
  6. nbdev-3.3.1/nbdev/skill.py +56 -0
  7. {nbdev-3.3.0 → nbdev-3.3.1/nbdev.egg-info}/PKG-INFO +1 -1
  8. nbdev-3.3.0/nbdev/skill.py +0 -181
  9. {nbdev-3.3.0 → nbdev-3.3.1}/CONTRIBUTING.md +0 -0
  10. {nbdev-3.3.0 → nbdev-3.3.1}/LICENSE +0 -0
  11. {nbdev-3.3.0 → nbdev-3.3.1}/MANIFEST.in +0 -0
  12. {nbdev-3.3.0 → nbdev-3.3.1}/README.md +0 -0
  13. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/_modidx.py +0 -0
  14. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/cli.py +0 -0
  15. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/config.py +0 -0
  16. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/diff.py +0 -0
  17. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/doclinks.py +0 -0
  18. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/export.py +0 -0
  19. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/extract_attachments.py +0 -0
  20. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/frontmatter.py +0 -0
  21. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/imports.py +0 -0
  22. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/maker.py +0 -0
  23. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/merge.py +0 -0
  24. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/migrate.py +0 -0
  25. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/processors.py +0 -0
  26. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/qmd.py +0 -0
  27. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/quarto.py +0 -0
  28. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/scrubmagics.py +0 -0
  29. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/serve.py +0 -0
  30. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/serve_drv.py +0 -0
  31. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/showdoc.py +0 -0
  32. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/sync.py +0 -0
  33. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev/test.py +0 -0
  34. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev.egg-info/SOURCES.txt +0 -0
  35. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev.egg-info/dependency_links.txt +0 -0
  36. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev.egg-info/entry_points.txt +0 -0
  37. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev.egg-info/requires.txt +0 -0
  38. {nbdev-3.3.0 → nbdev-3.3.1}/nbdev.egg-info/top_level.txt +0 -0
  39. {nbdev-3.3.0 → nbdev-3.3.1}/pyproject.toml +0 -0
  40. {nbdev-3.3.0 → nbdev-3.3.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.0
3
+ Version: 3.3.1
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
@@ -1,4 +1,4 @@
1
- __version__ = "3.3.0"
1
+ __version__ = "3.3.1"
2
2
 
3
3
  from .doclinks import nbdev_export
4
4
  from .showdoc import show_doc
@@ -149,7 +149,7 @@ def _to_meta(cell, names):
149
149
 
150
150
  def _to_comments(cell, names):
151
151
  "Move directives in `names` from the cell's `nbdev` metadata key to comments"
152
- move = {k:v for k,v in _meta_directives(cell).items() if k in names}
152
+ move = {k:v for k,v in _meta_directives(cell.get('metadata')).items() if k in names}
153
153
  if not move: return
154
154
  nbd = cell.metadata['nbdev']
155
155
  for k in move: nbd.pop(k, None)
@@ -41,7 +41,7 @@ class NBProcessor:
41
41
  self.nb = read_nb(path) if nb is None else nb
42
42
  self.lang = nb_lang(self.nb)
43
43
  for cell in self.nb.cells: cell.directives_ = cell.directives
44
- nbdirs = {k:v for k,v in _meta_directives(self.nb).items() if not any(k in c.directives_ for c in self.nb.cells)}
44
+ nbdirs = {k:v for k,v in _meta_directives(self.nb.get('metadata')).items() if not any(k in c.directives_ for c in self.nb.cells)}
45
45
  if nbdirs:
46
46
  fc = first(c for c in self.nb.cells if c.cell_type=='code')
47
47
  if fc is not None: fc.directives_ = nbdirs | fc.directives_
@@ -63,7 +63,7 @@ def _release_head():
63
63
  def update_changelog(txt, ver, notes, marker='<!-- do not remove -->\n'):
64
64
  "Insert `notes` into changelog `txt` after `marker`, replacing any existing section for `ver`"
65
65
  txt = re.sub(rf'\n## {re.escape(ver)}\n.*?(?=\n## |\Z)', '', txt, flags=re.S)
66
- return txt.replace(marker, marker+notes+'\n')
66
+ return txt.replace(marker, marker+notes.rstrip('\n')+'\n\n').rstrip('\n')+'\n'
67
67
 
68
68
  # %% ../nbs/api/18_release.ipynb #0b36471a
69
69
  class Release:
@@ -0,0 +1,56 @@
1
+ """Author clear, executable nbdev notebooks where code, prose, examples, outputs, and tests form one coherent narrative.
2
+
3
+ # The notebook is the product
4
+
5
+ An nbdev notebook is source, docs, examples, and tests at once: the rendered page explains the public API, and executing the same cells builds and verifies it. Write it to be read top to bottom, interleaving implementation with explanation, examples, outputs, and failure demonstrations. These conventions matter most for published libraries with docs sites; in internal projects, match the surrounding notebooks instead.
6
+
7
+ # Notebooks generate modules
8
+
9
+ `nbdev-export` writes exported cells to the module named by `#| default_exp`; never hand-edit generated `.py` files, `__all__`, `_modidx.py`, or generated module docstrings: the next export overwrites them. Each exported section's marker (`# %% ../nbs/04_usage.ipynb #a45f753a`) leads back to the cell to change. The module docstring is the title cell's `>` description joined with every exported markdown cell after the H1; for a long docstring, prefer one exported markdown cell per section.
10
+
11
+ Projects mix notebook-sourced and plain modules deliberately: notebooks where narrative earns its keep (public API with a docs page, code best explained through examples, tests that double as documentation), plain `.py` for dense mechanism iterated quickly under pytest. Check the file, never the repo: view its first few lines - a generated module opens with the `# AUTOGENERATED! DO NOT EDIT!` warning naming its source notebook, and `# %%` cell markers precede each definition (so a few lines of context around any def also answer it). No marker means hand-written and edited directly. Tests follow the source form: cells for notebook modules, `tests/*.py` for plain ones.
12
+
13
+ For project-level questions, read `nbs/index.ipynb`, not `README.md`: the README is generated from it, renders worse, and can be stale if regeneration lagged. When they disagree, index.ipynb is the truth; regenerate with `nbdev-readme` after editing it.
14
+
15
+ # Structure
16
+
17
+ Pick one documentation form deliberately rather than mixing accidentally: tutorial (guided learning), how-to (a practical task), explanation (a focused topic), or reference (a component and its API, easy to scan).
18
+
19
+ Open with an H1 title cell plus `>` subtitle line, introduce the page in a sentence or two, and get to the subject quickly. H2 headings divide major concepts; don't fragment a short narrative into tiny sections. Every heading goes in its own markdown cell, separate from body prose: Jupyter collapses sections by cell.
20
+
21
+ # Develop one idea at a time
22
+
23
+ The rhythm: add the smallest useful implementation, explain what it does and why it has that form, demonstrate it executably, assert where that improves the example, display the result a reader should notice, move on. A cell may bundle several closely related checks, but needs a markdown introduction saying what it establishes; if the introduction gets complicated, split the cell. Prefer extending an existing example over adding a near-duplicate cell. Build classes incrementally with `@patch` so each method sits beside its explanation, unless splitting makes the API harder to understand.
24
+
25
+ # Helpers
26
+
27
+ Internal use is often the first evidence an abstraction is worth exposing, not a reason to hide it. Reserve underscores for machinery with no coherent independent contract; a helper only useful to the library itself hints at an awkward internal design.
28
+
29
+ # Prose and docstrings
30
+
31
+ Markdown explains what the code cannot: why an abstraction exists, what distinction the next example demonstrates, which details are guarantees and which merely describe an example. Never narrate code line by line or write empty transitions ("Now we test the function"); state the lesson ("A missing leaf returns `None`, so success status alone does not establish existence"). Place prose where it reads correctly on the generated page, normally right after the definition it explains.
32
+
33
+ Keep docstrings to a short statement of what the symbol does; extended explanation, examples, and warnings go in markdown cells, where they render properly and can include executable results. Document parameters and returns with docments, keeping their docs beside the signature instead of repeating it in the docstring. Backtick symbol names in prose; nbdev links them, so prefer names over hand-maintained URLs.
34
+
35
+ # Examples are documentation and tests
36
+
37
+ Write each example as page content first, then make it verify behavior: realistic values, the shortest path to the idea, an informative displayed result, direct assertions that reinforce the lesson, reuse of objects introduced earlier, and important errors demonstrated executably with `expect_fail` (one focused example per contract). Keep test plumbing out of reader-facing cells: mocks, dense comprehensions, and long setup make poor documentation, so extract a tiny helper or hide the check. Assertions verify; the final expression teaches: end cells with the value worth displaying, and design a compact `_repr_markdown_` or structured summary when it turns later examples into documentation for free. Plots, tables, images, and rich HTML all count as evidence. Stored outputs are part of the explanation: keep them focused, and never dump a large structure without saying what matters in it. Test helpers come from `fastcore.test` (`test_eq`, `expect_fail`, ...), in plain code cells. Show rather than claim; executable evidence keeps documentation synchronized with behavior.
38
+
39
+ # State flows downward
40
+
41
+ Keep imports in dedicated import cells, define values near first use, reuse established objects, don't reassign names later cells depend on, introduce shared setup explicitly, and end exploratory cells with the expression whose output records what was learned, so a reader never searches far upward for where a value came from. The import rule is strict and covers test cells: the docs build runs each import-containing cell in a fresh namespace where no other cell has run, so a cell mixing imports with other code breaks the build or silently runs at documentation time.
42
+
43
+ # Directives
44
+
45
+ `#| default_exp` names the module. `#| export` marks exported cells; underscore-prefixed helpers may export without joining the public API. `#| hide` keeps necessary but distracting material off the page. `#| eval: false` is for cells that genuinely must not run, not for suppressing broken ones, and it cascades: an unevaluated cell cannot create state for later evaluated cells.
46
+
47
+ # nbdev v3
48
+
49
+ Everything here describes nbdev v3 (released Jan 2026, possibly after a model's training cutoff). Key user-visible changes from v2: config moved from `settings.ini` to `pyproject.toml` - standard metadata in `[project]`, nbdev-specific keys in `[tool.nbdev]` (defaults `nbs_path='nbs'`, `doc_path='_docs'`), version in `__init__.py` via `dynamic = ["version"]`, and `_modidx` registered under `[project.entry-points.nbdev]`. CLI commands use hyphens (`nbdev-export`, `nbdev-test`, ...) though Python functions keep underscores. GitHub workflows use the v3 actions (`fastai/workflows/nbdev3-ci`, `quarto-ghp3`).
50
+
51
+ # Before you finish
52
+
53
+ Each new test cell ran red then green: it failed before the change and passed after. Re-read the touched section as a reader would, against the conventions above - style damage fails silently: tests pass, export succeeds, and the harm only shows on the docs page.
54
+
55
+ The governing test: pleasant and informative to read, convincing when executed, useful as the source of the library it documents.
56
+ """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.0
3
+ Version: 3.3.1
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
@@ -1,181 +0,0 @@
1
- """Author clear, executable nbdev notebooks where code, prose, examples, outputs, and tests form one coherent narrative.
2
-
3
- # The notebook is the product
4
-
5
- An nbdev notebook is simultaneously source code, documentation, examples, and tests. Write it to be read from top to bottom. The rendered page should explain the public API, while executing the same cells should build and verify it.
6
-
7
- Do not treat an nbdev notebook as a Python module divided arbitrarily into cells. Use the notebook medium deliberately: interleave implementation with explanation, executable examples, useful outputs, plots, images, tables, diagrams, and demonstrations of failure whenever they communicate the idea better than prose alone.
8
-
9
- These conventions matter most for published libraries with rendered documentation sites. Internal projects with no docs page can be looser: match the surrounding notebooks' style rather than imposing every rule here.
10
-
11
- # Notebooks generate modules
12
-
13
- The notebook is the source of truth: `nbdev-export` writes exported cells to the module named by `#| default_exp`, and generated `.py` files are never edited by hand. Each exported section carries a marker like `# %% ../nbs/04_usage.ipynb #a45f753a` naming its source notebook and cell, so module code always leads back to the cell to change. `__all__`, `_modidx.py`, and module docstrings likewise regenerate on export - renames and additions propagate automatically, so never hand-edit them.
14
-
15
- The module docstring comes from the notebook's opening markdown: the title cell's `>` description line, joined with every *exported* markdown cell after the H1 (a markdown cell whose first line is `#| export`). For a long module docstring, prefer one exported markdown cell per section over packing everything into the title blockquote; both work.
16
-
17
- Not every module must come from a notebook, and projects often mix the two deliberately. Choose per module: notebook-sourced when narrative earns its keep - public API whose docs page matters, code best explained through interleaved prose and examples, tests that double as documentation; plain `.py` when the code is dense interlocking mechanism, iterated quickly, and covered by pytest, where cell-by-cell narrative would add friction rather than clarity. Check the file, never the repo: a `# %%` autogen marker at the top means notebook-sourced, no marker means hand-written and edited directly, and `nbdev-export` only rewrites marked files. Tests follow the source form: example and test cells for notebook modules, `tests/*.py` pytest files for plain ones.
18
-
19
- # Choose the kind of page
20
-
21
- Decide which form of documentation the notebook provides:
22
-
23
- - A **tutorial** teaches through a guided learning experience.
24
- - A **how-to guide** helps a reader accomplish a practical task.
25
- - An **explanation** develops understanding of a focused topic.
26
- - A **reference** describes a technical component and its API.
27
-
28
- Do not mix these forms accidentally. A reference page can contain examples, but should remain easy to scan for symbols and behavior. A tutorial should advance in a purposeful sequence rather than becoming an API inventory. A how-to should solve its stated problem without expanding into a general course. An explanation should clarify concepts and trade-offs rather than masquerading as step-by-step instructions.
29
-
30
- # Open the notebook well
31
-
32
- Start with a markdown cell containing an H1 title and a blockquote subtitle:
33
-
34
- ```markdown
35
- # Great title
36
-
37
- > A short description of what this page provides
38
- ```
39
-
40
- Then introduce the page briefly. For a reference notebook, describe the component and orient the reader to its main symbols. For a tutorial or how-to, state what the reader will learn or accomplish. For an explanation, name the question or idea under discussion. Get to the subject quickly.
41
-
42
- Use headings to make longer pages navigable. H2 headings normally divide major concepts or groups of symbols. Lower-level headings can organize longer discussions, but avoid fragmenting a short narrative into many tiny sections.
43
-
44
- # Develop one idea at a time
45
-
46
- A productive nbdev rhythm is:
47
-
48
- 1. Add the smallest useful implementation.
49
- 2. Explain what it does and why it has that form.
50
- 3. Demonstrate it with executable code.
51
- 4. Assert the behavior where an assertion improves the example.
52
- 5. Display the result a reader should notice.
53
- 6. Continue to the next idea.
54
-
55
- This is a pattern, not a demand that every code cell contain one statement. A test or example cell may demonstrate several closely related facts. It must have a markdown introduction that tells the reader what the cell is about to establish. If that introduction becomes complicated, does not naturally introduce everything shown, or reads like an explanation of unrelated checks, the cell is doing too much and should be split. Conversely, prefer extending an existing example cell with a closely related check over adding a near-duplicate cell.
56
-
57
- Keep definitions small enough to understand in context. When a class benefits from incremental development, define its core first and add methods later with `@patch`. This lets each method appear beside its explanation and examples. Keep a class together when splitting it would make the API harder, not easier, to understand.
58
-
59
- # Prefer helpers with a public purpose
60
-
61
- A helper introduced to make the notebook's own examples or tests clearer may also be a useful part of the library. Internal use is often the first evidence that an abstraction is worth exposing, not a reason to hide it.
62
-
63
- Ask whether the helper gives users a concise, coherent operation they would otherwise need to reconstruct from lower-level internals. A good public helper:
64
-
65
- - removes repeated knowledge of internal data structures
66
- - gives a common operation a clear name and contract
67
- - makes examples and downstream code easier to read
68
- - provides one place to adapt callers when internals change
69
- - is useful independently of the implementation that first needed it
70
-
71
- For example, a function that constructs a canonical tool-call object may first appear while building a test fixture, but it is also useful to developers constructing those objects themselves. The fixture is its first consumer, not its justification for being private.
72
-
73
- Treat private helpers with some suspicion. An underscore is appropriate for implementation machinery that has no coherent independent contract, but not merely because a function was first written for internal use. If a helper is only useful to the library itself, consider whether it exposes an awkward internal design that should instead become a small, reusable public abstraction.
74
-
75
- # Make prose earn its place
76
-
77
- Markdown should explain information the code does not express well:
78
-
79
- - why an abstraction exists
80
- - what distinction matters
81
- - what behavior the next example demonstrates
82
- - why a design choice was made
83
- - what limitation or failure motivated the implementation
84
- - how a symbol relates to the rest of the API
85
- - which details are guarantees and which merely describe an example
86
-
87
- Do not translate code line by line into English. Do not write empty transitions such as “Now we test the function.” State the lesson instead: “A missing leaf returns `None`, so success status alone does not establish existence.”
88
-
89
- Place prose where it reads correctly in the generated page. An exported definition is normally followed by markdown explaining the symbol and introducing its first example.
90
-
91
- # Keep docstrings short
92
-
93
- Use a short docstring to say what a public symbol does. Put extended explanations, examples, trade-offs, warnings, and rich media in markdown cells, where they render properly and can include executable results.
94
-
95
- Use docments beside parameters and return values. They keep argument documentation close to the signature without repeating the signature in a long docstring.
96
-
97
- Use backticks around related symbols in prose. nbdev can turn symbol references into documentation links, so prefer symbol names over manually maintained documentation URLs.
98
-
99
- # Examples are documentation and tests
100
-
101
- Write every example as part of the page first, then make it verify behavior where useful. Good examples:
102
-
103
- - use realistic, comprehensible values
104
- - show the shortest path to the idea being taught
105
- - produce an informative representation or result
106
- - include direct assertions that reinforce rather than obscure the lesson
107
- - reuse objects introduced naturally earlier in the notebook
108
- - demonstrate important errors with executable failing examples
109
-
110
- Avoid test-suite plumbing in reader-facing cells. Dense mocks, deeply nested comprehensions, long setup blocks, and many unrelated assertions make poor documentation even when they test correctly. Extract a tiny helper when setup obscures the behavior. Hide necessary but unreadable checks rather than forcing them into the page narrative.
111
-
112
- Do not weaken a clear example merely to tolerate a future change that would invalidate its premise. If an example exists to show that an object contains a particular behavior, it should fail when that behavior disappears so the author notices and reassesses the page.
113
-
114
- A code cell often ends with the value that should be displayed. The final line might show an object’s representation, a table, a plot, an image, a diff, a count, or another visual result of what was created or tested. Assertions verify; the final expression teaches. Prefer a useful stored output over ending every cell silently.
115
-
116
- # Use notebook outputs deliberately
117
-
118
- Notebooks can communicate with more than text. Use plots, images, tables, diagrams, videos, terminal recordings, rich HTML, and custom representations when they make behavior easier to grasp.
119
-
120
- Design useful object representations when appropriate. A compact `_repr_markdown_`, table, plot, or structured summary can turn later examples into clear documentation without repeated formatting code.
121
-
122
- Stored outputs are part of the explanation. They show the reader what an example produced and preserve evidence from an executed notebook. Keep them focused and readable; do not dump large structures without saying what matters in them.
123
-
124
- # Show failures as behavior
125
-
126
- Errors are part of an API. When a failure mode matters, demonstrate it with executable code and an assertion such as `expect_fail`, rather than describing it only in prose. A reader should be able to see which input fails and what rule is being enforced.
127
-
128
- Keep failure examples focused. A large defensive test covering many hypothetical errors is less useful than one example for each important contract.
129
-
130
- # Let state flow downward
131
-
132
- Notebook state is sequential. Make that sequence easy to follow:
133
-
134
- - keep imports in dedicated import cells
135
- - define values shortly before they are first used
136
- - reuse established objects instead of rebuilding near-duplicates
137
- - avoid reassigning a name when later cells depend on its earlier meaning
138
- - move genuinely shared setup into a small, clearly introduced helper
139
- - end exploratory cells with the expression whose output records what was learned
140
-
141
- A reader should not need to search far upward to understand where a value came from. If several later examples rely on setup, introduce the setup explicitly and explain its role.
142
-
143
- The import rule is strict, and covers every cell including tests: the docs build executes each cell that contains an import in a fresh namespace where the other cells have not run, so a cell mixing imports with other code either breaks the build with a NameError or silently runs at documentation time.
144
-
145
- # Use directives purposefully
146
-
147
- `#| default_exp` selects the generated module. `#| export` marks implementation for export. Private underscore-prefixed helpers may be exported with their public consumers without becoming part of the public API. `#| hide` keeps necessary but distracting material off the rendered page. `#| eval: false` is for examples that genuinely must not run automatically, not for suppressing broken cells.
148
-
149
- Directives affect both execution and documentation, so apply them according to the role of the whole cell. In particular, an unevaluated cell cannot create state required by later evaluated cells - so newly marking a cell `eval: false` means cascading the directive to the cells that depend on it.
150
-
151
- # Prefer executable evidence
152
-
153
- Whenever practical, show rather than claim:
154
-
155
- - display the object instead of describing its representation
156
- - run the transformation instead of paraphrasing the result
157
- - draw the plot instead of only discussing its shape
158
- - trigger the error instead of merely listing it
159
- - compare outputs when a distinction matters
160
-
161
- Executable evidence keeps documentation synchronized with behavior. Assertions turn important examples into regression tests, while visible outputs keep those tests useful to human readers.
162
-
163
- # Common authoring failures
164
-
165
- Avoid these patterns:
166
-
167
- - a large implementation followed much later by one large test section
168
- - several abstractions introduced before any is demonstrated
169
- - markdown that merely narrates the next line of code
170
- - long docstrings carrying material better expressed in notebook cells
171
- - imports mixed into example or test cells
172
- - repeated setup copied across examples
173
- - reader-facing cells dominated by mocks or cleanup machinery
174
- - many unrelated checks under one vague introduction
175
- - assertions that hide the result the reader needs to see
176
- - pages with no clear reader, purpose, or documentation form
177
- - descriptions of behavior that could be demonstrated directly
178
- - large outputs with no guidance about what to notice
179
-
180
- The governing test is simple: the notebook should be pleasant and informative to read, convincing when executed, and useful as the source of the library it documents.
181
- """
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