Skip to content
FunCoding

add-demo-notebook

Add or update a Jupyter notebook in the 3W repository (toolkit demo, dataset overview, tutorial or benchmark) in the correct folder, with relative paths and execution requirements that keep bin/nb_test and the Sphinx docs working. Use when creating or editing .ipynb files.

Star
555
Category
Data
License
Apache-2.0
Last commit
Nov 29, 2026

.agents/skills/add-demo-notebook/SKILL.md

View on GitHub

Add a 3W notebook

1. Choose the location

PurposeLocationKept working across releases?
How to use a toolkit featuretoolkit/demos/NN_topic.ipynbYes (BASIC)
Reference dataset overviewdataset/demos/_basic/main.ipynbYes (BASIC)
Contributor dataset overview / EDAdataset/demos/<author_name>/main.ipynbNo
Tutorial or course materialresources/<topic_or_version>/No
Complete, independent benchmarkbenchmarks/<name>/ (demo in demo/_basic/)_basic only

Never put notebooks in docs/ (reserved for academic PDFs).

For toolkit/demos/, use the next free two-digit prefix and snake_case (e.g. 15_windowing_examples.ipynb). Every notebook there is copied into the Sphinx tutorials automatically, so it must render cleanly.

2. Write it

  • Start with a Markdown title and a short description of what the notebook shows; organize with numbered headings.
  • Import from the package (from ThreeWToolkit.dataset import ParquetDatasetConfig), not from copied source code.
  • Use paths relative to the notebook's folder, e.g. dataset_path = "../../dataset" from toolkit/demos/ and "../../../dataset" from dataset/demos/<author>/. No absolute or user-specific paths.
  • Keep it runnable top to bottom on CPU. Prefer small subsets (target_class=[...], event_type=[...], few epochs) so execution time stays reasonable, and state clearly when a cell is expensive.
  • Fix random seeds where results matter.
  • Write outputs to ignored folders (output/, processed_data/), never into dataset/.
  • Do not add dependencies only for a notebook without also adding them to pyproject.toml (and running uv lock). Self-contained material in resources/ may ship its own requirements.txt instead.

3. Clean before saving

  • Restart the kernel and run all cells to confirm it works.
  • Keep outputs only if they help readers (plots in demos); remove huge outputs, progress bars, warnings noise and local paths.
  • Remove .ipynb_checkpoints and any secrets or tokens.
  • Set a generic kernel (python3).

4. Verify

./bin/nb_test                           # BASIC notebooks (errors block release)
INCLUDE_NOT_BASIC=True ./bin/nb_test    # include other demos and resources
./bin/nb_test path/to/folder            # only notebooks under a folder

The dataset download (about 1.8 GB) happens on first run if dataset/ is incomplete. Ruff and mypy do not check notebooks, so review code cells manually.

  • New dataset overviews that should be showcased can be added to "Examples of Use" in the root README.md.
  • Tutorials in resources/ should have a README.md explaining the order of notebooks and how to run them.

Similar Skills

Featured

agentic-os

Build persistent multi-agent systems without external databases, using file-based memory and scheduled tasks.

AFaffaan-m/ECC315k4,381 new stars in the last 7 days

health

GAgarrytan/gstack143k598 new stars in the last 7 days

deprecation-and-migration

ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days

ccs-align

THthedotmack/claude-mem121k1,626 new stars in the last 7 days

handoff

THthedotmack/claude-mem121k1,626 new stars in the last 7 days

mem-search

THthedotmack/claude-mem121k1,626 new stars in the last 7 days