You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after changing the source, both the streams have been registered to both the DynamicMap objects. Mouse moving in one of the plot will cause the two points move. Because of this problem, I cannot make two plots that link the stream to each other.
It seems that it is a bug in the setter of source property. if self.source should be if self.source is not None. bool(d1) returns False because len(d1)==0.
@source.setterdefsource(self, source):
ifself.source: #--> if self.source is not Nonesource_list=self.registry[self.source]
ifselfinsource_list:
source_list.remove(self)
ifsourceisNone:
self._source=Nonereturnself._source=weakref.ref(source)
ifsourceinself.registry:
self.registry[source].append(self)
else:
self.registry[source] = [self]
The text was updated successfully, but these errors were encountered:
Here is an example:
the output is
after changing the source, both the streams have been registered to both the
DynamicMap
objects. Mouse moving in one of the plot will cause the two points move. Because of this problem, I cannot make two plots that link the stream to each other.It seems that it is a bug in the setter of source property.
if self.source
should beif self.source is not None
.bool(d1)
returnsFalse
becauselen(d1)==0
.The text was updated successfully, but these errors were encountered: