Skip to content

Commit 6f63f76

Browse files
patch widgets (#3238)
Co-authored-by: Alessio Buccino <alejoe9187@gmail.com>
1 parent 86a152c commit 6f63f76

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/spikeinterface/widgets/utils_ipywidgets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ def check_ipywidget_backend():
1010
import matplotlib
1111

1212
mpl_backend = matplotlib.get_backend()
13-
assert "ipympl" in mpl_backend, "To use the 'ipywidgets' backend, you have to set %matplotlib widget"
13+
assert (
14+
"ipympl" in mpl_backend or "widget" in mpl_backend
15+
), "To use the 'ipywidgets' backend, you have to set %matplotlib widget"
1416

1517

1618
class TimeSlider(W.HBox):

0 commit comments

Comments
 (0)