holoviz / holoviz/param

Dynamic parameters should support iterator protocol

Open
#46 2 comments 0 reactions 0 assignees View on GitHub
component: dynamic values status: discussion status: duplicate type-feature
Dominant language
Python
Stars
521
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
35

Description

Dynamic parameters currently accept callable objects which are called to generate new values (e.g. with numbergen). It would make sense (and probably be more Pythonic!) to use the iterator protocol instead, calling the next function (for Python 3 compatibility) to get each value in turn.

It should be relatively easy to update numbergen to support the iterator protocol - it may be possible to deprecate the callable interface without too much trouble.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.