Skip to content

Commit

Permalink
Merge pull request #3278 from meeseeksmachine/auto-backport-of-pr-327…
Browse files Browse the repository at this point in the history
…7-on-7.x

Backport PR #3277 on branch 7.x (Flush figures with new backend name)
  • Loading branch information
jasongrout authored Sep 13, 2021
2 parents d38f58e + bb203c5 commit e856153
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipywidgets/widgets/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,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()


Expand Down

0 comments on commit e856153

Please sign in to comment.