Skip to content

Commit

Permalink
Declared the counter stream parameter as constant
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Apr 18, 2017
1 parent dce3c3e commit 8d6e66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class Counter(Stream):
parameter every time it is updated.
"""

counter = param.Integer(default=0, bounds=(0,None))
counter = param.Integer(default=0, constant=True, bounds=(0,None))

def transform(self):
return {'counter': self.counter + 1}
Expand Down

0 comments on commit 8d6e66b

Please sign in to comment.