ipywidgets-jsonschema
A lightweight library that seamlessly combines Pydantic models, JSON Schema, and IPyWidgets to generate interactive, schema‐driven forms in Jupyter notebooks. Define your data models with Pydantic (or raw JSON Schema), and this package will produce Jupyter widgets for editing and validating.
Features
- Automatic Widget Generation: Convert any JSON Schema or Pydantic model into a fully interactive IPyWidgets form.
- Pydantic Integration: Leverage Pydantic’s data validation, typing, and JSON Schema generation.
- Nested Structures: Support for nested objects, arrays, dictionaries, enums, unions, and optional fields.
- Inline Editing UI: The
PydanticEditorMixinwraps Pydantic models with an “Edit → Save/Cancel” toolbar for in‐place modifications.
Installation
ipywidgets-jsonschema can be installed with pip:
python -m pip install ipywidgets-jsonschema
Alternatively, you can get it from conda-forge:
conda install -c conda-forge ipywidgets-jsonschema
Quick Start
from pydantic import BaseModel, Field
from ipywidgets_jsonschema import Form
class Person(BaseModel):
name: str = Field(..., description="Your full name")
age: int = Field(..., ge=0, description="Your age in years")
email: str = Field(None, description="Optional email")
form = Form(Person)
form.show()
# Interact with the form in Jupyter; retrieve validated data:
print(form.data) # e.g. {"name": "Alice", "age": 30, "email": "alice@example.com"}
That’s it—your Pydantic model is now an interactive form. For more advanced examples (nested models, enums, unions, customization), see the Documentation.
License
Released under the MIT License.
Metadata
Release files for ipywidgets-jsonschema 1.2.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 | |
|---|---|---|---|
| ipywidgets_jsonschema-1.2.1.tar.gz | 34.0 kB | Details |
Release files / ipywidgets_jsonschema-1.2.1.tar.gz
| Download URL | ipywidgets_jsonschema-1.2.1.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a7265209c3c364b7281d5ab90cd333a71d65cfc2440742439a098aa5b6715a6
|
|
BLAKE2b-256 checksum How to use checksums |
62bf6485f5e76b7ff70f5ae193ab0ce323691434ddc95a5ba035ee9a2dee368c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 26, 2026.
Transparency log