Skip to content

Commit

Permalink
Merge pull request #94 from ssciwr/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
dokempf authored Feb 6, 2024
2 parents 0f3bb17 + cf6f4d5 commit 519a949
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ repos:
# Make sure that Jupyter notebooks under version control
# have their outputs stripped before committing
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.7.1
hooks:
- id: nbstripout
files: ".ipynb"

# Run Black - the uncompromising Python code formatter
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black-jupyter

Expand Down
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 519a949

Please sign in to comment.