Jupyter Notebook / Google Colab / VS Code Notebooks widget for LizyML
Project description
LizyML Widget
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lizyml_widget-0.7.2.tar.gz.
File metadata
- Download URL: lizyml_widget-0.7.2.tar.gz
- Upload date:
- Size: 588.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34a2d58b55aff2051924253fd7d1c8f81c31d6c5f36ae3ef0b93835741f5fb0a
|
|
| MD5 |
ad3d40e5db31bf3ae4d862a189f8ad75
|
|
| BLAKE2b-256 |
56b41646e62bacecda2895130e0009d89f8b703f3d2783e1bf836e9bd93c826a
|
Provenance
The following attestation bundles were made for lizyml_widget-0.7.2.tar.gz:
Publisher:
release.yml on nbx-liz/LizyML-Widget
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lizyml_widget-0.7.2.tar.gz -
Subject digest:
34a2d58b55aff2051924253fd7d1c8f81c31d6c5f36ae3ef0b93835741f5fb0a - Sigstore transparency entry: 1231633791
- Sigstore integration time:
-
Permalink:
nbx-liz/LizyML-Widget@70a05f4755e045e3d337c05ea00626df29dce9c6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nbx-liz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@70a05f4755e045e3d337c05ea00626df29dce9c6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file lizyml_widget-0.7.2-py3-none-any.whl.
File metadata
- Download URL: lizyml_widget-0.7.2-py3-none-any.whl
- Upload date:
- Size: 78.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
058716f51cc33cd2830a4ca92424dd1fbd37d9c56e247d46914104124abba220
|
|
| MD5 |
f8f46fc4344db6447178d19cb39b0523
|
|
| BLAKE2b-256 |
ae53806e184b6808c64971790c90e88608ccf84f2c562fa6aaecaf54d71f05b3
|
Provenance
The following attestation bundles were made for lizyml_widget-0.7.2-py3-none-any.whl:
Publisher:
release.yml on nbx-liz/LizyML-Widget
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lizyml_widget-0.7.2-py3-none-any.whl -
Subject digest:
058716f51cc33cd2830a4ca92424dd1fbd37d9c56e247d46914104124abba220 - Sigstore transparency entry: 1231633874
- Sigstore integration time:
-
Permalink:
nbx-liz/LizyML-Widget@70a05f4755e045e3d337c05ea00626df29dce9c6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nbx-liz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@70a05f4755e045e3d337c05ea00626df29dce9c6 -
Trigger Event:
workflow_dispatch
-
Statement type: