holoviz / holoviz/param

Param.depends shorthand for “depends on all params”

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

Description

I frequently end up adding/removing parameters to a parameterized Class, either by hand or by using them as parent classes later on. That means going through the entire class and updating all @param.depends(...) decorators, which quickly gets confusing especially when I have separate mixin classes for visualizations etc.

This could be solved by a shorthand for “this function depends on all params this class or its child classes might have”.

E.g. something like
```
@param.depends(all_params=True)
```
or even
```
@param.depends()
```
(Following up on https://discourse.holoviz.org/t/param-depends-shorthand-for-depends-on-all-params/270)

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.