Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Params support for unwatching #4417

Merged
merged 14 commits into from May 11, 2020
Merged

Params support for unwatching #4417

merged 14 commits into from May 11, 2020

Conversation

petros1999
Copy link
Contributor

@petros1999 petros1999 commented May 11, 2020

Just merging the code written by @analog-cbarber. Issue #4360

if watch:
# Subscribe to parameters
keyfn = lambda x: id(x.owner)
for _, group in groupby(sorted(parameters, key=keyfn)):
group = list(group)
group[0].owner.param.watch(self._watcher, [p.name for p in group])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to consider making the body of this if watch clause a separate watch method.

@philippjfr
Copy link
Member

Thanks for the changes, I'll merge for now. Refactoring can happen in a subsequent PR. I'll also be tagging a dev release shortly.

@philippjfr philippjfr merged commit 6c97edb into holoviz:master May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants