Skip to content

Commit

Permalink
docs: add IPython.display import
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Feb 6, 2022
1 parent a55bcf3 commit 51084a9
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 86 deletions.
9 changes: 4 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,17 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.0.102
rev: "7351575"
hooks:
- id: check-dev-files
args:
- --pin-requirements
- id: fix-first-nbcell
- id: fix-nbformat-version
- id: format-setup-cfg
- id: set-nb-cells
args:
- --add-install-cell
- --additional-packages=IPython
- --extras-require=doc,viz
- id: fix-nbformat-version
- id: format-setup-cfg

- repo: https://github.com/psf/black
rev: 22.1.0
Expand Down
18 changes: 9 additions & 9 deletions docs/usage/amplitude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"slide_type": "skip"
},
"tags": [
"remove-cell"
"remove-cell",
"skip-execution"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz]"
]
},
{
Expand All @@ -39,14 +38,15 @@
"slide_type": "skip"
},
"tags": [
"remove-cell",
"skip-execution"
"remove-cell"
]
},
"outputs": [],
"source": [
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz] IPython"
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
]
},
{
Expand Down
18 changes: 9 additions & 9 deletions docs/usage/dynamics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"slide_type": "skip"
},
"tags": [
"remove-cell"
"remove-cell",
"skip-execution"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz]"
]
},
{
Expand All @@ -39,14 +38,15 @@
"slide_type": "skip"
},
"tags": [
"remove-cell",
"skip-execution"
"remove-cell"
]
},
"outputs": [],
"source": [
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz] IPython"
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
]
},
{
Expand Down
18 changes: 9 additions & 9 deletions docs/usage/dynamics/analytic-continuation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"slide_type": "skip"
},
"tags": [
"remove-cell"
"remove-cell",
"skip-execution"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz]"
]
},
{
Expand All @@ -39,14 +38,15 @@
"slide_type": "skip"
},
"tags": [
"remove-cell",
"skip-execution"
"remove-cell"
]
},
"outputs": [],
"source": [
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz] IPython"
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
]
},
{
Expand Down
18 changes: 9 additions & 9 deletions docs/usage/dynamics/custom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"slide_type": "skip"
},
"tags": [
"remove-cell"
"remove-cell",
"skip-execution"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz]"
]
},
{
Expand All @@ -39,14 +38,15 @@
"slide_type": "skip"
},
"tags": [
"remove-cell",
"skip-execution"
"remove-cell"
]
},
"outputs": [],
"source": [
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz] IPython"
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
]
},
{
Expand Down
18 changes: 9 additions & 9 deletions docs/usage/dynamics/k-matrix.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"slide_type": "skip"
},
"tags": [
"remove-cell"
"remove-cell",
"skip-execution"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz]"
]
},
{
Expand All @@ -39,14 +38,15 @@
"slide_type": "skip"
},
"tags": [
"remove-cell",
"skip-execution"
"remove-cell"
]
},
"outputs": [],
"source": [
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz] IPython"
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
]
},
{
Expand Down
18 changes: 9 additions & 9 deletions docs/usage/formalism.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"slide_type": "skip"
},
"tags": [
"remove-cell"
"remove-cell",
"skip-execution"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz]"
]
},
{
Expand All @@ -39,14 +38,15 @@
"slide_type": "skip"
},
"tags": [
"remove-cell",
"skip-execution"
"remove-cell"
]
},
"outputs": [],
"source": [
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz] IPython"
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
]
},
{
Expand Down
18 changes: 9 additions & 9 deletions docs/usage/interactive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"slide_type": "skip"
},
"tags": [
"remove-cell"
"remove-cell",
"skip-execution"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz]"
]
},
{
Expand All @@ -39,14 +38,15 @@
"slide_type": "skip"
},
"tags": [
"remove-cell",
"skip-execution"
"remove-cell"
]
},
"outputs": [],
"source": [
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz] IPython"
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
]
},
{
Expand Down
18 changes: 9 additions & 9 deletions docs/usage/modify.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"slide_type": "skip"
},
"tags": [
"remove-cell"
"remove-cell",
"skip-execution"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz]"
]
},
{
Expand All @@ -39,14 +38,15 @@
"slide_type": "skip"
},
"tags": [
"remove-cell",
"skip-execution"
"remove-cell"
]
},
"outputs": [],
"source": [
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz] IPython"
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
]
},
{
Expand Down
18 changes: 9 additions & 9 deletions docs/usage/symplot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"slide_type": "skip"
},
"tags": [
"remove-cell"
"remove-cell",
"skip-execution"
]
},
"outputs": [],
"source": [
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz]"
]
},
{
Expand All @@ -39,14 +38,15 @@
"slide_type": "skip"
},
"tags": [
"remove-cell",
"skip-execution"
"remove-cell"
]
},
"outputs": [],
"source": [
"# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n",
"%pip install -q ampform[doc,viz] IPython"
"%config InlineBackend.figure_formats = ['svg']\n",
"import os\n",
"\n",
"STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)"
]
},
{
Expand Down

0 comments on commit 51084a9

Please sign in to comment.