Skip to content

Commit

Permalink
DX: remove figure_formats = ["svg"] statement (ComPWA#368)
Browse files Browse the repository at this point in the history
* DOC: remove duplicate widget rendering
* DOC: plot with SVG where needed
  • Loading branch information
redeboer committed Dec 12, 2023
1 parent 42c6b86 commit 6ad1d91
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.1.4
rev: 0.1.5
hooks:
- id: check-dev-files
args:
Expand Down
1 change: 0 additions & 1 deletion docs/usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/amplitude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down Expand Up @@ -77,6 +76,7 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import sympy as sp\n",
"from IPython.display import Math\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/dynamics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down Expand Up @@ -114,6 +113,7 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import logging\n",
"import warnings\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/dynamics/analytic-continuation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down Expand Up @@ -109,6 +108,7 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import warnings\n",
"\n",
"import sympy as sp\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/dynamics/custom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down Expand Up @@ -77,6 +76,7 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"from __future__ import annotations\n",
"\n",
"import graphviz\n",
Expand Down
7 changes: 5 additions & 2 deletions docs/usage/dynamics/k-matrix.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down Expand Up @@ -1135,6 +1134,7 @@
},
"tags": [
"hide-input",
"remove-output",
"scroll-input"
]
},
Expand Down Expand Up @@ -1787,7 +1787,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
"tags": [
"remove-output"
]
},
"outputs": [],
"source": [
Expand All @@ -1809,6 +1811,7 @@
"source_hidden": true
},
"tags": [
"full-width",
"remove-input"
]
},
Expand Down
1 change: 0 additions & 1 deletion docs/usage/helicity/formalism.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down
1 change: 0 additions & 1 deletion docs/usage/helicity/spin-alignment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/interactive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down Expand Up @@ -480,6 +479,7 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import matplotlib.pyplot as plt\n",
"import mpl_interactions.ipyplot as iplt\n",
"\n",
Expand Down
1 change: 0 additions & 1 deletion docs/usage/kinematics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down
1 change: 0 additions & 1 deletion docs/usage/modify.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/symplot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
Expand Down Expand Up @@ -189,6 +188,7 @@
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import matplotlib.pyplot as plt\n",
"import mpl_interactions.ipyplot as iplt\n",
"import numpy as np\n",
Expand Down

0 comments on commit 6ad1d91

Please sign in to comment.