Skip to content

Commit e7a593a

Browse files
Fixes for Latest IPython (9.0.1) (#13146)
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
1 parent 73c4a7c commit e7a593a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mne/forward/forward.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ def _get_src_type_and_ori_for_repr(self):
180180
src_types = np.array([src["type"] for src in self["src"]])
181181

182182
if (src_types == "surf").all():
183-
src_type = "Surface with {self['nsource']} vertices"
183+
src_type = f"Surface with {self['nsource']} vertices"
184184
elif (src_types == "vol").all():
185-
src_type = "Volume with {self['nsource']} grid points"
185+
src_type = f"Volume with {self['nsource']} grid points"
186186
elif (src_types == "discrete").all():
187-
src_type = "Discrete with {self['nsource']} dipoles"
187+
src_type = f"Discrete with {self['nsource']} dipoles"
188188
else:
189189
count_string = ""
190190
if (src_types == "surf").any():

mne/viz/backends/tests/test_abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,5 @@ def test_widget_abstraction_notebook(renderer_notebook, nbexec):
127127
assert Path(backend.__file__).stem == "_notebook"
128128

129129
ipython = get_ipython()
130-
ipython.magic("%matplotlib widget")
130+
ipython.run_line_magic(magic_name="matplotlib", line="widget")
131131
_do_widget_tests(backend)

0 commit comments

Comments
 (0)