Skip to content

Commit

Permalink
Backport PR jupyter-widgets#3277: Flush figures with new backend name
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout authored and meeseeksmachine committed Sep 13, 2021
1 parent d38f58e commit bb203c5
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 bb203c5

Please sign in to comment.