param.reactive.reactive_ops.meta#

property reactive_ops.meta: dict[Any, Any]#

A per-node mapping of user metadata.

Unlike the reactive expression itself, metadata is local to this exact node: it is not inherited by nodes derived from it (through operators, attribute access, method calls, .rx.pipe, indexing, etc.), and it is not shared with mirrors created by branching (expr[0], expr[1]). Each node starts with its own empty mapping.

Metadata takes no part in a node’s identity or evaluation: mutating it does not dirty the node, notify watchers, or otherwise affect computation. It exists purely as a place for a library built on rx to attach state to a specific node, such as a provenance record or a cache key.

Returns:

The mutable metadata mapping for this node.

Return type:

dict

Examples

>>> import param
>>> a = param.rx(1)
>>> a.rx.meta['trace'] = 'created at step 1'
>>> b = a + 1
>>> 'trace' in b.rx.meta
False