teefoml
teefoml bundles nine original machine-learning lab notebooks and provides a
small, cross-platform API for displaying their source in Jupyter Notebook,
JupyterLab, Google Colab, and VS Code. Displaying a lab never executes its code.
Installation
python -m pip install teefoml
Python 3.10 and newer is supported. Installation also installs IPython, NumPy,
Matplotlib, pandas, scikit-learn, TensorFlow, and Keras, which were detected in
the notebooks. (time is part of Python's standard library and is not a
dependency.) TensorFlow is installed on Python 3.10–3.13, the versions supported
by TensorFlow. The display and export API remains installable on newer Python
versions, but executing Lab 7 requires a TensorFlow-supported interpreter.
Quick start
In a Jupyter or Colab cell:
import teefoml
teefoml.lab1() # display Lab 1; do not execute it
teefoml.show_lab(5) # display a numbered lab
teefoml.all_labs() # display all labs
teefoml.list_labs() # display and return lab titles
teefoml.help() # display an API reminder
The display uses native IPython Markdown and syntax-highlighted code output, so
source remains easy to select and copy. There is no reliable, supported API
that inserts new editable cells into every Jupyter Notebook, JupyterLab, Colab,
and VS Code frontend. teefoml therefore deliberately avoids frontend-specific
JavaScript and uses exact notebook export as the portable editable fallback.
Labs
| Lab | Title | Description |
|---|---|---|
| 1 | NumPy Fundamentals and Vectorization | Arrays, broadcasting, reshaping, vectorization, and normalization. |
| 2 | Gradient Descent for Linear Regression | Scalar linear regression and scikit-learn comparison. |
| 3 | Matrix-Based Linear Regression | Multivariable gradient descent using matrix operations. |
| 4 | Logistic Regression Gradient Descent | Sigmoid activation and a matrix gradient step. |
| 5 | Logistic Regression and Optimization | Logistic regression, propagation, and optimization. |
| 6 | Building a Simple Neural Network | Activations and a two-layer neural network from NumPy. |
| 7 | Neural Networks with TensorFlow and Keras | Binary classification and MNIST multiclass models. |
| 8 | Linear Discriminant Analysis | Manual LDA and scikit-learn comparison. |
| 9 | Principal Component Analysis | Manual eigendecomposition and scikit-learn PCA. |
Export editable notebooks
from pathlib import Path
import teefoml
path = teefoml.export_lab(5) # ./lab5.ipynb
paths = teefoml.export_labs(Path("my_labs")) # all nine
Exports preserve the bundled notebooks byte for byte, including code, Markdown, raw cells, metadata, comments, indentation, and cell order. Existing files are never overwritten. Open an exported file normally to edit or run its cells.
External data
The supplied Lab 7 and Lab 8 notebooks refer to diabetes.csv and LDA_1.csv
respectively. Those files were not present alongside the source notebooks and
are not included because their exact contents and redistribution rights could
not be established. Place the matching course datasets beside an exported
notebook before executing those labs. Lab 7 also downloads MNIST through Keras
when that section is executed, so it requires network access on first use.
Build and publish
From the project directory:
python -m pip install --upgrade build twine
python -m pytest
python -m build
python -m twine check dist/*
Upload to TestPyPI first (you will be prompted for credentials):
python -m twine upload --repository testpypi dist/*
python -m pip install --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ teefoml==0.1.1
After verification, upload the same artifacts to production PyPI:
python -m twine upload dist/*
Use a PyPI API token when prompted (username __token__); never commit tokens.
Publishing is intentionally not automated by this project.
License
MIT
Metadata
Release files for teefoml 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teefoml-0.1.1.tar.gz | 105.3 kB | Without provenance | Details for teefoml-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| teefoml-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for teefoml-0.1.1-py3-none-any.whl |
Total release size: 212.0 kB
Release files / teefoml-0.1.1.tar.gz
| Download URL | teefoml-0.1.1.tar.gz |
|---|---|
| Size | 105.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bf9f4b076c91415c1f0a86a50fb0c04c3376e37e08cb3dc4addad5ad72218cf
|
|
BLAKE2b-256 checksum How to use checksums |
fc15624c6e8c67175554bb2ba6620cd725d11c1faed854f0390b523892f3060e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / teefoml-0.1.1-py3-none-any.whl
| Download URL | teefoml-0.1.1-py3-none-any.whl |
|---|---|
| Size | 106.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
575aaa3591ee197f81c540dcf05df3c7f60c99e4cc97a2c868863acc62fe9819
|
|
BLAKE2b-256 checksum How to use checksums |
088ea6e588a4eb8ef5b649c333273c2de49b645a5dd2aaa3259c7ed7efad9a19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for teefoml 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.