From b3ae8abebb0ef5ace5e82efb8433cd4e258e0a36 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 17:26:42 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/kynan/nbstripout: 0.6.1 → 0.7.1](https://github.com/kynan/nbstripout/compare/0.6.1...0.7.1) - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a9e955..83fa3bc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 From cf6f4d55a067183dd81b787f793537776c5be914 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 17:27:00 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- demo/demo.ipynb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/demo/demo.ipynb b/demo/demo.ipynb index a73ea54..adba9cf 100644 --- a/demo/demo.ipynb +++ b/demo/demo.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "c6ef475d-f4d2-44fe-b4d2-12495d4efe74", + "id": "0", "metadata": {}, "source": [ "# ipywidgets-jsonschema demo" @@ -10,7 +10,7 @@ }, { "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:" @@ -19,7 +19,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0b28466d-54d5-4b3e-909c-1c3038d3d7e6", + "id": "2", "metadata": {}, "outputs": [], "source": [ @@ -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:" @@ -47,7 +47,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5c33de7b-4568-49e3-8c40-a901e9bd0505", + "id": "4", "metadata": {}, "outputs": [], "source": [ @@ -57,7 +57,7 @@ { "cell_type": "code", "execution_count": null, - "id": "53d75508-3945-496e-8ac4-ecc34b148067", + "id": "5", "metadata": {}, "outputs": [], "source": [ @@ -67,7 +67,7 @@ { "cell_type": "code", "execution_count": null, - "id": "863174a7-1436-4357-9464-36ae24293e91", + "id": "6", "metadata": {}, "outputs": [], "source": [ @@ -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`:" @@ -85,7 +85,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f98cda2e-7371-49df-90e3-f6e32ab054b0", + "id": "8", "metadata": {}, "outputs": [], "source": [ @@ -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:" @@ -103,7 +103,7 @@ { "cell_type": "code", "execution_count": null, - "id": "cf54749e-92de-46ac-b874-6372b9d5997c", + "id": "10", "metadata": {}, "outputs": [], "source": [ @@ -113,7 +113,7 @@ { "cell_type": "code", "execution_count": null, - "id": "23254122-b5da-48ae-901d-ce1ca69d063a", + "id": "11", "metadata": {}, "outputs": [], "source": []