diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 9c9bce18392e..0cba71982ce0 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -444,6 +444,7 @@ def show(self, warn=True): except NonGuiException: pass if (backends._get_running_interactive_framework() != "headless" + and get_backend() != "module://ipykernel.pylab.backend_inline" and warn): cbook._warn_external('Matplotlib is currently using %s, which is ' 'a non-GUI backend, so cannot show the '