Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent b3ae8ab commit cf6f4d5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions demo/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"cells": [
{
"cell_type": "markdown",
"id": "c6ef475d-f4d2-44fe-b4d2-12495d4efe74",
"id": "0",
"metadata": {},
"source": [
"# ipywidgets-jsonschema demo"
]
},
{
"cell_type": "markdown",
"id": "5b1bb7b8-06ca-473e-8bf7-07592bf29c77",
"id": "1",
"metadata": {},
"source": [
"`ipywidgets-jsonschema` allows you to generate a widget form from an existing schema that follows th JSON Schema specification. We first define a schema:"
Expand All @@ -19,7 +19,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0b28466d-54d5-4b3e-909c-1c3038d3d7e6",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -38,7 +38,7 @@
},
{
"cell_type": "markdown",
"id": "7cc08b1c-ac7d-4254-941c-81848024dc32",
"id": "3",
"metadata": {},
"source": [
"Generating the widget form for it and visualizing it in Jupyter is as simple as this:"
Expand All @@ -47,7 +47,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5c33de7b-4568-49e3-8c40-a901e9bd0505",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -57,7 +57,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "53d75508-3945-496e-8ac4-ecc34b148067",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -67,7 +67,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "863174a7-1436-4357-9464-36ae24293e91",
"id": "6",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -76,7 +76,7 @@
},
{
"cell_type": "markdown",
"id": "68487025-bddd-4820-93c3-cc7f81ce0ad1",
"id": "7",
"metadata": {},
"source": [
"To get access to the current data, we can use the `data` property of `form`:"
Expand All @@ -85,7 +85,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f98cda2e-7371-49df-90e3-f6e32ab054b0",
"id": "8",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -94,7 +94,7 @@
},
{
"cell_type": "markdown",
"id": "aff26b6e-08ca-4e28-a168-fe0e95d208ea",
"id": "9",
"metadata": {},
"source": [
"The data displayed in the widget can also be live-updated by setting the `data` property:"
Expand All @@ -103,7 +103,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cf54749e-92de-46ac-b874-6372b9d5997c",
"id": "10",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -113,7 +113,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "23254122-b5da-48ae-901d-ce1ca69d063a",
"id": "11",
"metadata": {},
"outputs": [],
"source": []
Expand Down

0 comments on commit cf6f4d5

Please sign in to comment.