Skip to main content

Utilities for Data Science using Python and Jupyter Notebook

Project description

JupyterPower

This is a Python Package for use in Data Science + Jupyter Notebooks for end-to-end ML Engineering, MLOps, Data Science productions tasks

Uninstall any old packages

Make sure your project .venv is active:

source .venv/bin/activate

Uninstall any old packages (jupyterpower & jpower), and show any leftovers

# sanity
which python
python -m pip --version

# uninstall both names (safe even if not present)
python -m pip uninstall -y jupyterpower jpower

# look for any stragglers in site-packages (dry run list)
python - <<'PY'
import sys, sysconfig, pathlib
sp = pathlib.Path(sysconfig.get_paths()["purelib"])
candidates = [p for p in sp.iterdir() if p.name.lower().startswith(("jpower","jupyterpower"))]
print("Site-packages:", sp)
print("Leftovers:", [p.name for p in candidates] or "None")
PY

Install the newest from PyPI (clean)

python -m pip install --upgrade --no-cache-dir jupyterpower

Verify jupyterpower is installed

# package metadata
python -m pip show jupyterpower

# freeze view (should show jupyterpower==0.9.5, and NOT jpower)
python -m pip freeze | egrep -i '^(jupyterpower|jpower)'

# python-level verification (import + dist check + scan site-packages)
python - <<'PY'
import sys, importlib, importlib.metadata as md, sysconfig, pathlib
print("PY:", sys.executable)
# import should succeed
m = importlib.import_module("jupyterpower")
print("✅ import jupyterpower OK")
print("CODE version:", getattr(m, "__version__", "unknown"))
print("CODE file   :", getattr(m, "__file__", "unknown"))
# distribution metadata
print("DIST version:", md.version("jupyterpower"))
# ensure no 'jpower' dist present
bad = [d for d in md.distributions() if d.metadata["Name"].lower()=="jpower"]
print("Other dist named 'jpower':", [b.metadata["Version"] for b in bad] or "None")
# scan site-packages for any top-level jpower folders
sp = pathlib.Path(sysconfig.get_paths()["purelib"])
leftovers = [p.name for p in sp.iterdir() if p.name.lower().startswith("jpower")]
print("Site-packages leftovers starting with 'jpower':", leftovers or "None")
PY

Installation Support

From PyPI:

pip install jupyterpower

## Check install
python -c "import jupyterpower; print(jupyterpower.__version__)"

## Load a CSV, smooth a column, fit a simple baseline, and save a plot:
from jupyterpower import DATA_DIR, RESULTS_DIR, load_csv, moving_average, fit_linear_time
from jupyterpower.viz import plot_series_with_smooth, save_fig

# explicit columns for this demo schema
time_col  = "time"
value_col = "signal"

df = load_csv(DATA_DIR / "sample.csv", create_placeholder=True)
smooth = moving_average(df, value_col=value_col, window=7)
model, X, y, pred = fit_linear_time(df, time_col=time_col, y_col=value_col)

fig, ax = plot_series_with_smooth(df, time_col=time_col, value_col=value_col, smooth=smooth)
out_png = RESULTS_DIR / "quickstart_plot.png"
save_fig(fig, out_png)
print("Saved:", out_png)


## Using a Jupyter Notebook
%load_ext autoreload
%autoreload 2
import jupyterpower; print("jupyterpower", jupyterpower.__version__)

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

jupyterpower-0.9.6.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

jupyterpower-0.9.6-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file jupyterpower-0.9.6.tar.gz.

File metadata

  • Download URL: jupyterpower-0.9.6.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jupyterpower-0.9.6.tar.gz
Algorithm Hash digest
SHA256 fe2d60228c1a217e2087053f710fca62676294edee929739ee7bceb806b617b2
MD5 37fec3a8c8797f67465fedb0c80c532c
BLAKE2b-256 7fda0e6ec5921c85c575410f9f903d69851ca5aa182b200254a08d37391c94d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyterpower-0.9.6.tar.gz:

Publisher: release.yml on bdesimas/JupyterPower

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

File details

Details for the file jupyterpower-0.9.6-py3-none-any.whl.

File metadata

  • Download URL: jupyterpower-0.9.6-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jupyterpower-0.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 df76e0d83a32b05d4b1799ccbd8e155576d79df43bdbe69aaf69e46aa107acd8
MD5 c4b35eb8f33d67fcc115397245011c1c
BLAKE2b-256 9baa002990d02015e2b566695caacde928979430684449d774e72aac86fdc62e

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyterpower-0.9.6-py3-none-any.whl:

Publisher: release.yml on bdesimas/JupyterPower

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