Skip to content

fix: library cleanup — dead links, bare except, stale refs#3

Closed
nathanhubens wants to merge 4 commits into
masterfrom
fix/library-cleanup
Closed

fix: library cleanup — dead links, bare except, stale refs#3
nathanhubens wants to merge 4 commits into
masterfrom
fix/library-cleanup

Conversation

@nathanhubens
Copy link
Copy Markdown
Contributor

Summary

From a full library audit (3 agents: API coherence, typos, notebook conventions).

Fixes

  • 4 dead links fixed: tutorial.htmlbenchmark.html in See Also sections; removed sensitivity.html refs (notebook doesn't exist)
  • Removed report.html link from benchmark See Also (source analysis/report.ipynb is missing)
  • Removed analysis/report.ipynb from _quarto.yml sidebar (file doesn't exist, would break Quarto build)
  • except:except Exception: in profiling hook setup (was catching KeyboardInterrupt)
  • Removed unused from typing import Any in compute module
  • Fixed stale summary() example in index.ipynb (Params line under Compute section)

Not addressed (structural debt)

  • 10 API notebooks missing raw frontmatter, show_doc, tests, See Also — larger effort for a separate PR
  • Missing analysis/report.ipynb source notebook — needs to be reverse-engineered from report.py

Test plan

  • nbdev-test full suite passes
  • nbdev-export clean

- Fix 4 dead links: tutorial.html → benchmark.html, remove sensitivity.html refs
- Remove report.html link (source notebook missing)
- Remove analysis/report.ipynb from _quarto.yml (file doesn't exist)
- Fix bare except: → except Exception: in profiling hooks
- Remove unused `from typing import Any` in compute
- Fix stale summary() example output in index.ipynb
Structural alignment for all 10 API notebooks:
- Add raw YAML frontmatter (title, description, skip_showdoc)
- Add #| include: false setup cell with from nbdev.showdoc import *
- Add show_doc() for all public classes and functions
- Add #| hide test cells with fastcore.test assertions
- Add See Also cross-reference sections
- Remove stale nbdev_export() call from core.ipynb

Notebooks updated: core/core, core/utils, metrics/size, metrics/speed,
metrics/memory, metrics/energy, metrics/compute, analysis/profiling,
analysis/benchmark, visualization/plot
- Recreate nbs/analysis/report.ipynb from report.py (source notebook
  was missing — code existed but couldn't be edited via nbdev)
- Add show_doc for Report, ComparisonReport, ReportMetricDelta
- Add inline tests for both classes
- Create nbs/tutorials/report.ipynb showing full compression workflow:
  benchmark → compress → benchmark again → ComparisonReport
- Add both notebooks to _quarto.yml sidebar
@nathanhubens
Copy link
Copy Markdown
Contributor Author

Superseded by #4 (rebased on post-v0.1.0 master)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant