px-stat
Offline statistics practical-code expansion in Python IDLE Editor windows, using all 14 Python sources from mcc-prac/stats. Requires Python 3.10 or newer with Tk and IDLE installed.
Install and enable
python -m pip install px-stat
python -m px_stat install
python -m idlelib
Close existing IDLE windows before reopening. Select File → New File and
type #> on a dedicated line to show the catalogue. Type #>wilcoxon to filter
by topic or #>p06-q01 to find a practical/question number. Up/Down select;
Enter or Tab inserts the exact bundled source; Escape dismisses. Expansion is
one undo operation. The Shell window does not expand code.
#@ is a statistics-only trigger that always works. When px-idle is also enabled,
px-stat uses #@ exclusively so the two extensions do not compete over #>.
For example, use #@wilcoxon with both extensions enabled.
The command shortcut px-stat install is also available when Python's Scripts
directory is on PATH. The module command above works without that PATH entry.
Use the same Python installation for pip, registration and IDLE.
python -m px_stat status
python -m px_stat doctor
python -m px_stat uninstall
python -m pip uninstall px-stat
Registration is explicit. Pip installation does not alter IDLE settings.
Registration edits only PxStat sections, backs up existing configuration and
writes it atomically. Uninstalling registration preserves px-idle and other
extensions. --config-dir DIRECTORY isolates configuration for tests.
Statistics sources
Sources retain their original code, with UTF-8/LF normalization only. The catalogue uses the practical and question numbers in each source's docstring:
| Practical | Topics |
|---|---|
| P06 | One-sample and two-sample Z and T tests; paired T test |
| P07 | One-sample chi-square variance test; two-sample F variance test |
| P09 | Sign, Wilcoxon signed-rank, Mann–Whitney U and chi-square independence tests |
| P10 | Kruskal–Wallis, Friedman and Mood median tests |
The extension never executes or imports practical code, accesses the clipboard, downloads data, or contacts the source repository at runtime. Bundled assets are checked against SHA256 hashes. Search supports file names, topic words, practical and question numbers, normalized separators, and conservative single-edit typos.
To run the inserted statistical programs, install their dependencies into the same Python environment:
python -m pip install "px-stat[practicals]"
NumPy and SciPy are optional for code expansion. The original programs prompt for inputs when run; px-stat does not change their statistical methods or results.
License and provenance
All rights reserved, local use only; see LICENSE and NOTICE. Package publication
requires the source owner's permission. practicals/registry.json records the
exact source commit, asset hashes and dependencies. Executed package and actual
IDLE test reports are stored in docs/; untested platforms are not claimed.
Metadata
Release files for px-stat 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| px_stat-0.1.0.tar.gz | 38.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| px_stat-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.1 kB
Release files / px_stat-0.1.0.tar.gz
| Download URL | px_stat-0.1.0.tar.gz |
|---|---|
| Size | 38.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8aba4be35d624bd08683b828bcfd0d8ff5075cb7c392cca599c985c115417b5
|
|
BLAKE2b-256 checksum How to use checksums |
4fca6ee6b864a44f022bd524f61df05f3594775e387497699e27f166705d01cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / px_stat-0.1.0-py3-none-any.whl
| Download URL | px_stat-0.1.0-py3-none-any.whl |
|---|---|
| Size | 30.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da1270751bdf907eb5b981812f647c5d4addcecb4939820a3014cb0d0c6a6e55
|
|
BLAKE2b-256 checksum How to use checksums |
74a9e2931075a52527a918149c59882ae9cecd2f7dc91eddc30fcfde3ee8cfef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|