holoviz / holoviz/param

Document how to use with `layout.param.objects.rx`

Open
#1,005 5 comments 1 reaction 0 assignees View on GitHub
doc
Dominant language
Python
Stars
521
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
35

Description

I think the following should be documented in https://param.holoviz.org/user_guide/Reactive_Expressions.html

Instead of
```
self._coordinator.interface.param.objects.rx.bool().rx.not_()
```

```
visible=self._coordinator.interface.param.objects.rx.bool().rx.not_()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'function' object has no attribute 'rx'
```

It should be:
```
self._coordinator.interface.param['objects'].rx.bool().rx.not_()
```

Because the param accessor works like a dataframe column accessors, if the parameter name clashes with an existing method the method takes precedence.

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.