Skip to content

Commit

Permalink
Flush figures with new backend name.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaperilio committed Sep 13, 2021
1 parent a1078be commit d510b91
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 @@ -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()


Expand Down

0 comments on commit d510b91

Please sign in to comment.