Skip to content

nbagg close figure when removed from dom #4841

Closed

Description

@tacaswell

Register a call back on the DOM element that contains the figure so that when it is removed from the DOM it closes the figure (which if it is the last view of the figure open removes it from Gcf and starts the clean up process).

This addresses the case where users have

fig, ax = plt.subplots()
...

in a cell they keep re-executing.

attn @pelson

Activity

  1. added this to the milestone on Jul 31, 2015
  2. pelson commented on Aug 3, 2015

    @pelson
    Member

    Seems reasonable 👍. Is there anybody who can work on this?

  3. added 3 commits that reference this issue on Aug 16, 2015
    7888942
    2ca678c
    436dfdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions