From 391a4df72f5ce7d5eb67c127da89472ad5429b21 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Fri, 10 Nov 2023 01:36:03 +0000
Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---
binder/example.ipynb | 5 ++---
docs/source/examples/Notebook/Running Code.ipynb | 8 +++-----
ui-tests/test/notebooks/autoscroll.ipynb | 8 ++++++--
3 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/binder/example.ipynb b/binder/example.ipynb
index c8d428ecd4b..df3144614de 100644
--- a/binder/example.ipynb
+++ b/binder/example.ipynb
@@ -235,7 +235,7 @@
"\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\\n",
"\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n",
"\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n",
- "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0 \n",
+ "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0\n",
"\\end{eqnarray}\"\"\"\n",
")"
]
@@ -277,8 +277,7 @@
"metadata": {},
"outputs": [],
"source": [
- "from IPython.display import HTML\n",
- "from IPython.display import display\n",
+ "from IPython.display import HTML, display\n",
"\n",
"s = \"\"\"
\n",
"\n",
diff --git a/docs/source/examples/Notebook/Running Code.ipynb b/docs/source/examples/Notebook/Running Code.ipynb
index 25879272ead..c9321326013 100644
--- a/docs/source/examples/Notebook/Running Code.ipynb
+++ b/docs/source/examples/Notebook/Running Code.ipynb
@@ -124,7 +124,6 @@
"outputs": [],
"source": [
"import sys\n",
- "from ctypes import CDLL\n",
"\n",
"# This will crash a Linux or Mac system\n",
"# equivalent calls can be made on Windows\n",
@@ -225,9 +224,7 @@
}
],
"source": [
- "from __future__ import print_function\n",
- "\n",
- "print('hi, stderr', file=sys.stderr)"
+ "print(\"hi, stderr\", file=sys.stderr)"
]
},
{
@@ -270,7 +267,8 @@
}
],
"source": [
- "import time, sys\n",
+ "import sys\n",
+ "import time\n",
"\n",
"for i in range(8):\n",
" print(i)\n",
diff --git a/ui-tests/test/notebooks/autoscroll.ipynb b/ui-tests/test/notebooks/autoscroll.ipynb
index d386426b197..bcb8b23932a 100644
--- a/ui-tests/test/notebooks/autoscroll.ipynb
+++ b/ui-tests/test/notebooks/autoscroll.ipynb
@@ -6,7 +6,9 @@
"id": "6f7028b9-4d2c-4fa2-96ee-bfa77bbee434",
"metadata": {},
"outputs": [],
- "source": ["print('1\\n' * 200)"]
+ "source": [
+ "print(\"1\\n\" * 200)"
+ ]
},
{
"cell_type": "code",
@@ -14,7 +16,9 @@
"id": "6f7028b9-4d2c-4fa2-96ee-bfa77bbee434",
"metadata": {},
"outputs": [],
- "source": ["print('1\\n' * 20)"]
+ "source": [
+ "print(\"1\\n\" * 20)"
+ ]
}
],
"metadata": {