Skip to content

Commit 45a187e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 60abdfd commit 45a187e

8 files changed

+4
-33
lines changed

docs/examples/custom-callbacks.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@
158158
"# attach a custom callback\n",
159159
"\n",
160160
"# if running from a script you can just delete the widgets.Output and associated code\n",
161+
"\n",
162+
"\n",
161163
"def my_callback(tau, beta):\n",
162164
" if tau < 7.5:\n",
163165
" ax.tick_params(axis=\"x\", colors=\"red\")\n",

docs/examples/devlop/devlop-controller.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@
310310
" )\n",
311311
"\n",
312312
" def update(params, indices):\n",
313-
"\n",
314313
" # update plot\n",
315314
" for i, f in enumerate(funcs):\n",
316315
" if x is not None and not indexed_x:\n",
@@ -379,7 +378,6 @@
379378
"\n",
380379
" lines = []\n",
381380
" for i, f in enumerate(funcs):\n",
382-
"\n",
383381
" if x is not None and not indexed_x:\n",
384382
" lines.append(ax.plot(x, f(x, **params), **plot_kwargs[i])[0])\n",
385383
" elif indexed_x:\n",

docs/examples/hyperslicer.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,6 @@
356356
"nbconvert_exporter": "python",
357357
"pygments_lexer": "ipython3",
358358
"version": "3.11.0"
359-
},
360-
"widgets": {
361-
"application/vnd.jupyter.widget-state+json": {
362-
"state": {},
363-
"version_major": 2,
364-
"version_minor": 0
365-
}
366359
}
367360
},
368361
"nbformat": 4,

docs/examples/rossler-attractor.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,6 @@
189189
"nbconvert_exporter": "python",
190190
"pygments_lexer": "ipython3",
191191
"version": "3.11.0"
192-
},
193-
"widgets": {
194-
"application/vnd.jupyter.widget-state+json": {
195-
"state": {},
196-
"version_major": 2,
197-
"version_minor": 0
198-
}
199192
}
200193
},
201194
"nbformat": 4,

docs/examples/scatter-selector.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,6 @@
241241
"nbconvert_exporter": "python",
242242
"pygments_lexer": "ipython3",
243243
"version": "3.11.0"
244-
},
245-
"widgets": {
246-
"application/vnd.jupyter.widget-state+json": {
247-
"state": {},
248-
"version_major": 2,
249-
"version_minor": 0
250-
}
251244
}
252245
},
253246
"nbformat": 4,

docs/examples/text-annotations.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,6 @@
165165
"nbconvert_exporter": "python",
166166
"pygments_lexer": "ipython3",
167167
"version": "3.11.0"
168-
},
169-
"widgets": {
170-
"application/vnd.jupyter.widget-state+json": {
171-
"state": {},
172-
"version_major": 2,
173-
"version_minor": 0
174-
}
175168
}
176169
},
177170
"nbformat": 4,

docs/examples/usage.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@
453453
"\n",
454454
"iplt.title(\"the value of tau is: {tau:.2f}\", controls=controls[\"tau\"])\n",
455455
"# you can still use plt commands if this is the active figure\n",
456+
"\n",
457+
"\n",
456458
"def ylabel(tau):\n",
457459
" return f\"tau/2 is {np.round(tau/2,3)}\"\n",
458460
"\n",

mpl_interactions/generic.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def heatmap_slicer(
4444
figsize=(18, 9),
4545
**pcolormesh_kwargs,
4646
):
47-
4847
"""
4948
Compare horizontal and/or vertical slices across multiple arrays.
5049
@@ -594,7 +593,6 @@ def hyperslicer(
594593
display_controls=True,
595594
**kwargs,
596595
):
597-
598596
"""
599597
View slices from a hyperstack of images selected by sliders. Also accepts Xarray.DataArrays
600598
in which case the axes names and coordinates will be inferred from the xarray dims and coords.
@@ -697,7 +695,6 @@ def hyperslicer(
697695

698696
# Just pass in an array - no kwargs
699697
for i in range(arr.ndim - im_dims):
700-
701698
start, stop = None, None
702699
name = f"axis{i}"
703700
if name in kwargs:

0 commit comments

Comments
 (0)