Skip to main content

Marimo-based notebook framework for ML/DS work — standalone tools and embeddable learningfoundry exercises from one source

Project description

nbfoundry

License: Apache 2.0

Marimo-based notebook framework for ML/DS work. One notebook source compiles into two artifacts: a standalone runnable application and an ExerciseBlock-compatible artifact that drops into a learningfoundry curriculum.

For the why, see docs/specs/concept.md. For the what, see docs/specs/features.md. For the how, see docs/specs/tech-spec.md.

Installation

nbfoundry targets Python 3.12.13 with the pinned Pyve + micromamba environment defined in environment.yml.

Apple Silicon quickstart

The pinned stack is tuned for Apple Silicon with Metal/MPS acceleration across PyTorch, TensorFlow (via tensorflow-metal), and Keras. To verify the stack on a clean Apple Silicon machine, copy environment.yml and scripts/metal_smoke.py into a fresh directory and let pyve build a micromamba-backed env from the spec:

mkdir nbfoundry-test && cd nbfoundry-test
mkdir scripts
cp <path-to-nbfoundry-root>/environment.yml .
cp <path-to-nbfoundry-root>/scripts/metal_smoke.py scripts/
pyve init --backend micromamba
pyve run python scripts/metal_smoke.py

pyve init --backend micromamba reads the local environment.yml and provisions the runtime env from it. The smoke script doesn't import nbfoundry itself — it just exercises PyTorch / TensorFlow / Keras against the MPS device — so no pip install -e . step is required for the verify.

Successful output ends with all frameworks ran on MPS ✓. If any framework fails, the script reports which one and why (no MPS device, plugin not installed, etc.).

Development setup (Pyve two-env)

pyve init
pyve run pip install -e .
pyve testenv init
pyve testenv install -r requirements-dev.txt

Usage

The CLI surface (nbfoundry init, compile, compile-exercise, validate) lands across Phase D. See docs/specs/stories.md for the implementation roadmap.

Releasing to PyPI

Releases ship through .github/workflows/publish.yml, which is triggered by pushing a v* tag. The workflow builds an sdist + wheel with hatch build and publishes via PyPI trusted publishing (OIDC, no long-lived API tokens).

One-time PyPI setup: register nbfoundry on PyPI and add a pending trusted publisher under the project's Publishing settings — owner pointmatic, repository nbfoundry, workflow publish.yml, environment pypi.

Per-release procedure:

  1. Land the version-bump story on main (package version in src/nbfoundry/_version.py and a matching CHANGELOG.md entry).
  2. Tag the commit with the matching v<version> (e.g. git tag v0.29.0 && git push origin v0.29.0).
  3. The workflow verifies the tag matches hatch version, builds the distributions, and publishes to PyPI under the pypi GitHub environment.

The workflow refuses to publish if the tag and hatch version disagree, so the only way to ship a release is to tag the same commit that owns the version bump.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbfoundry-0.29.0.tar.gz (137.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nbfoundry-0.29.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file nbfoundry-0.29.0.tar.gz.

File metadata

  • Download URL: nbfoundry-0.29.0.tar.gz
  • Upload date:
  • Size: 137.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nbfoundry-0.29.0.tar.gz
Algorithm Hash digest
SHA256 3f5d279b0b2b3acd26aead5dc6439d9c0ddcc876c5809a59b378bb17b96e3589
MD5 70986fb0cda846695e9521a73c732795
BLAKE2b-256 a8d2b4eb1daf06cbb64f7275f67df9e26b12c8bc783051313ea74679820bd7db

See more details on using hashes here.

Provenance

The following attestation bundles were made for nbfoundry-0.29.0.tar.gz:

Publisher: publish.yml on pointmatic/nbfoundry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nbfoundry-0.29.0-py3-none-any.whl.

File metadata

  • Download URL: nbfoundry-0.29.0-py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nbfoundry-0.29.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd7961eaeb73c0dbcf2bd901ee97dc3ece245c78cba1293fb754883b7284564c
MD5 8a434f0d0c22b272911866c89c7ae9b5
BLAKE2b-256 a6aa32020450022711dc0c196e3088b263326aabac64f80a912ea91fcb64eeb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for nbfoundry-0.29.0-py3-none-any.whl:

Publisher: publish.yml on pointmatic/nbfoundry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page