Skip to content

Commit

Permalink
Merge ddf01ed into eaa8e4c
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 10, 2020
2 parents eaa8e4c + ddf01ed commit c017030
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions holoviews/plotting/bokeh/plot.py
Expand Up @@ -20,8 +20,9 @@
from ...core.options import SkipRendering
from ...core.util import (
basestring, cftime_to_timestamp, cftime_types, get_method_owner,
unique_iterator, wrap_tuple, wrap_tuple_streams, _STANDARD_CALENDARS)

is_param_method, unique_iterator, wrap_tuple, wrap_tuple_streams,
_STANDARD_CALENDARS
)
from ..links import Link
from ..plot import (
DimensionedPlot, GenericCompositePlot, GenericLayoutPlot,
Expand Down Expand Up @@ -232,7 +233,8 @@ def cleanup(self):
for stream in set(streams):
stream._subscribers = [
(p, subscriber) for p, subscriber in stream._subscribers
if get_method_owner(subscriber) not in plots
if not is_param_method(subscriber) or
get_method_owner(subscriber) not in plots
]


Expand Down
4 changes: 3 additions & 1 deletion holoviews/plotting/plot.py
Expand Up @@ -192,7 +192,9 @@ def cleanup(self):
for stream in set(plot.streams):
stream._subscribers = [
(p, subscriber) for p, subscriber in stream._subscribers
if util.get_method_owner(subscriber) not in plots]
if not util.is_param_method(subscriber) or
util.get_method_owner(subscriber) not in plots
]


def _session_destroy(self, session_context):
Expand Down

0 comments on commit c017030

Please sign in to comment.