diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 976adb24..1f589aaa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,8 +23,10 @@ repos: - | cell.attachments cell.metadata.code_folding + cell.metadata.editable cell.metadata.id cell.metadata.pycharm + cell.metadata.slideshow cell.metadata.user_expressions metadata.celltoolbar metadata.colab.name @@ -40,7 +42,7 @@ repos: metadata.vscode - repo: https://github.com/ComPWA/policy - rev: 0.3.9 + rev: 0.3.10 hooks: - id: check-dev-files args: @@ -51,6 +53,7 @@ repos: - --repo-title=QRules - id: colab-toc-visible - id: fix-nbformat-version + - id: remove-empty-tags - id: set-nb-cells args: - --add-install-cell diff --git a/.vscode/extensions.json b/.vscode/extensions.json index a021dd4e..c48e310f 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -30,6 +30,7 @@ "ms-python.flake8", "ms-python.isort", "ms-python.pylint", + "ms-toolsai.vscode-jupyter-slideshow", "travisillig.vscode-json-stable-stringify", "tyriar.sort-lines" ] diff --git a/docs/usage.ipynb b/docs/usage.ipynb index a85dc837..20221994 100644 --- a/docs/usage.ipynb +++ b/docs/usage.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] @@ -87,9 +81,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "### Investigate intermediate resonances" ] @@ -97,9 +89,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import qrules\n", @@ -168,9 +158,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "import qrules\n", @@ -192,9 +180,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "subset = pdg.filter(lambda p: p.spin in {2.5, 3.5, 4.5} and p.name.startswith(\"N\"))\n", diff --git a/docs/usage/conservation.ipynb b/docs/usage/conservation.ipynb index ce1c629c..291ff1ea 100644 --- a/docs/usage/conservation.ipynb +++ b/docs/usage/conservation.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] @@ -149,9 +143,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "### No spin and angular momentum" ] diff --git a/docs/usage/custom-topology.ipynb b/docs/usage/custom-topology.ipynb index d1efcd95..b546581c 100644 --- a/docs/usage/custom-topology.ipynb +++ b/docs/usage/custom-topology.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/ls-coupling.ipynb b/docs/usage/ls-coupling.ipynb index 92a1624a..e8170dac 100644 --- a/docs/usage/ls-coupling.ipynb +++ b/docs/usage/ls-coupling.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/particle.ipynb b/docs/usage/particle.ipynb index 4cb16ace..79c25c4c 100644 --- a/docs/usage/particle.ipynb +++ b/docs/usage/particle.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/reaction.ipynb b/docs/usage/reaction.ipynb index 72147a8c..35c53455 100644 --- a/docs/usage/reaction.ipynb +++ b/docs/usage/reaction.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] @@ -489,9 +483,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "tags": [] - }, + "metadata": {}, "outputs": [], "source": [ "stm.set_allowed_intermediate_particles(r\"f\\([02]\\)\", regex=True)\n", @@ -585,9 +577,7 @@ }, { "cell_type": "markdown", - "metadata": { - "tags": [] - }, + "metadata": {}, "source": [ "```{tip}\n", "The {mod}`ampform` package can formulate amplitude models based on the state transitions created by {mod}`qrules`. See {doc}`ampform:usage/amplitude`.\n", diff --git a/docs/usage/visualize.ipynb b/docs/usage/visualize.ipynb index 2b9a943b..495886e2 100644 --- a/docs/usage/visualize.ipynb +++ b/docs/usage/visualize.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ]