Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions glue_jupyter/bqplot/image/layer_artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,10 @@ def remove(self):
PIXEL_CACHE.pop(self.state.uuid, None)
self.subset_array = None
marks = self.view.figure.marks[:]
marks.remove(self.image_artist)
if self.image_artist in marks:
marks.remove(self.image_artist)
self.view.figure.marks = marks
self.image_artist = None
self.view.figure.marks = marks

def enable(self, redraw=True):
if self.enabled:
Expand Down
Loading