Skip to main content

Jupyter Notebook / Google Colab / VS Code Notebooks widget for LizyML

Project description

LizyML Widget

PyPI Python License: MIT

Interactive Jupyter widget for LizyML — fit, tune, and run inference on machine learning models without writing code.

Features

  • Data Tab — Load a DataFrame, select target, configure columns and cross-validation
  • Config Tab — Edit LightGBM hyperparameters, configure tuning search space
  • Results Tab — View scores, Plotly plots, feature importance, and inference results
  • Config Import/Export — Save and load configurations as YAML
  • Python API — Programmatic access to all widget functionality

Requirements

  • Python >= 3.10
  • Jupyter Notebook, JupyterLab, Google Colab, or VS Code Notebooks

Installation

pip install lizyml-widget

With the LizyML backend (required for Fit/Tune):

pip install lizyml-widget[lizyml]

Quick Start

import pandas as pd
from lizyml_widget import LizyWidget

df = pd.read_csv("train.csv")
w = LizyWidget()
w.load(df, target="price")
w  # display widget in notebook cell

Programmatic Usage

w = LizyWidget()
w.load(df, target="y").fit()

summary = w.get_fit_summary()
print(summary.metrics)

w.save_model("./model")
w.save_config("config.yaml")

Version

import lizyml_widget
print(lizyml_widget.__version__)

Tutorials

Notebook Task Dataset
Regression Regression California Housing (sklearn)
Binary Classification Binary Breast Cancer Wisconsin (sklearn)
Multiclass Classification Multiclass Wine (sklearn)

Supported Environments

  • Jupyter Notebook
  • JupyterLab
  • Google Colab
  • VS Code Notebooks

Powered by anywidget for cross-environment compatibility.

Development

# Python
uv sync --all-extras    # installs dev + lizyml dependencies
uv run pytest
uv run ruff check .
uv run mypy src/lizyml_widget/

# TypeScript
cd js
pnpm install
pnpm dev    # watch build
pnpm build  # production build
pnpm lint

Stable Notebook Launch

If VS Code gets stuck reconnecting to an old kernel, prefer launching Jupyter with workspace-local runtime files instead of the default global runtime directory:

./scripts/jupyter-reset.sh
./scripts/jupyter-lab.sh

This keeps runtime/config state under the repository and makes stale kernel/server state easier to clear than relying on Reload Window alone.

License

MIT

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

lizyml_widget-0.7.3.tar.gz (589.0 kB view details)

Uploaded Source

Built Distribution

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

lizyml_widget-0.7.3-py3-none-any.whl (78.3 kB view details)

Uploaded Python 3

File details

Details for the file lizyml_widget-0.7.3.tar.gz.

File metadata

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

File hashes

Hashes for lizyml_widget-0.7.3.tar.gz
Algorithm Hash digest
SHA256 35a0f4389d14cba8b188fcf37512ce4f358474ced42c73b9232f18ada08a11e1
MD5 6f1d8e2c49d838584c7fceeb4c4e8603
BLAKE2b-256 f79554595043bd82f5b09b9de0f9ce145dd3576d8347d1e383b75b5eb34e5868

See more details on using hashes here.

Provenance

The following attestation bundles were made for lizyml_widget-0.7.3.tar.gz:

Publisher: release.yml on nbx-liz/LizyML-Widget

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

File details

Details for the file lizyml_widget-0.7.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for lizyml_widget-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f8a2003207235aec77ed20cd99871732f10aabc42d5c2e4d0b219adb281b2a
MD5 a428d3d63d8c1c2a6b1b88f1b148b614
BLAKE2b-256 35dd1d7d633c7ff0065e61a8ef079401d941af0cf72bfbf57502e0bd0f2b4e82

See more details on using hashes here.

Provenance

The following attestation bundles were made for lizyml_widget-0.7.3-py3-none-any.whl:

Publisher: release.yml on nbx-liz/LizyML-Widget

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