Skip to content

Commit

Permalink
Merge pull request #19 from 1kastner/patch-1
Browse files Browse the repository at this point in the history
Return manager instead of None - fixes #18.

Will release quickly a 0.1.6 with this fix.
  • Loading branch information
fperez authored Aug 18, 2022
2 parents f33be24 + 023bc08 commit 6bc258f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matplotlib_inline/backend_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bc258f

Please sign in to comment.