From 023bc08dfb7b54f1606c363c15114cda8e7e4004 Mon Sep 17 00:00:00 2001 From: 1kastner Date: Thu, 18 Aug 2022 01:23:02 +0200 Subject: [PATCH] Return manager instead of None Fixes #18 --- matplotlib_inline/backend_inline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matplotlib_inline/backend_inline.py b/matplotlib_inline/backend_inline.py index 148f2e4..6bcc1d4 100644 --- a/matplotlib_inline/backend_inline.py +++ b/matplotlib_inline/backend_inline.py @@ -52,7 +52,7 @@ def new_figure_manager_given_figure(num, figure): # should be a no-op (otherwise we'll generate duplicate plots, since a user # who set ioff() manually expects to make separate draw/show calls). if not matplotlib.is_interactive(): - return + return manager # ensure current figure will be drawn, and each subsequent call # of draw_if_interactive() moves the active figure to ensure it is