From d510b91e43968673fbc9bf2e34a720976d6e6249 Mon Sep 17 00:00:00 2001 From: Emilio Graff <1@emil.io> Date: Mon, 13 Sep 2021 14:14:22 -0700 Subject: [PATCH] Flush figures with new backend name. See https://github.com/ipython/ipykernel/pull/591/commits/f0d35275100c017fbe24b84a45ed0574b0ce71ef --- ipywidgets/widgets/interaction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipywidgets/widgets/interaction.py b/ipywidgets/widgets/interaction.py index 39390e5e9b..5072c6db56 100644 --- a/ipywidgets/widgets/interaction.py +++ b/ipywidgets/widgets/interaction.py @@ -44,7 +44,8 @@ def show_inline_matplotlib_plots(): except ImportError: return - if mpl.get_backend() == 'module://ipykernel.pylab.backend_inline': + if (mpl.get_backend() == 'module://ipykernel.pylab.backend_inline' or + mpl.get_backend() == 'module://matplotlib_inline.backend_inline'): flush_figures()