Skip to main content

ipywidgets-jsonschema

License: MIT GitHub Workflow Status PyPI version Conda Version Binder

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 PydanticEditorMixin wraps 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)

Source distribution for ipywidgets-jsonschema 1.2.1
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

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.12.1

1 release file

0.12.0

1 release file

0.11.1

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page