Contributing¶
tgmm isn't yet set up to accept external contributions through a formal process (no contribution guidelines, issue templates, or review workflow are in place yet).
If you're interested in contributing, please reach out directly to asp@di.ku.dk.
Tutorials are marimo notebooks¶
The tutorials under notebooks/ are marimo notebooks, i.e. plain Python files
(notebooks/NN_name.py), and they are the single source of truth. The .ipynb pages the documentation site
renders are generated from them by CI (marimo export ipynb ... --include-outputs) into docs/notebooks/,
which is git-ignored -- never commit an .ipynb.
- Conventions (header with PEP 723 metadata, unique global names, figures as last expressions, the
TGMM_DOCS_FASTbudgets) are innotebooks/README.md. make notebooks-checkrunsmarimo check notebooks/(must be clean) andmake notebooks-testruns every notebook as a script withTGMM_DOCS_FAST=1(each must finish in under 3 minutes). CI runs both on every pull request.make docsexports the notebooks and serves the site locally, exactly as CI builds it.- The interactive explainer pages (
docs/explainers/) run in the reader's browser throughmkdocs-marimo(Pyodide), so they may import only NumPy, SciPy, matplotlib and marimo -- nevertgmmortorch. - Wrap every explainer fence in
<div markdown="0">.mkdocs-marimoinserts each island as an inline tag, which Markdown puts in a<p>; browsers close a<p>when they meet a<div>, so any output built frommo.hstack,mo.vstackor other layout elements silently loses its island (the cells then fail withNameErrorin Pyodide).<div markdown="0">around the fence prevents the paragraph.