From ecbd92b3b5baf9c4235cabc63f2c4ac70c1e1499 Mon Sep 17 00:00:00 2001 From: Marc Skov Madsen Date: Thu, 14 Nov 2024 20:26:07 +0100 Subject: [PATCH 1/4] Update param/parameterized.py Co-authored-by: Maxime Liquet <35924738+maximlt@users.noreply.github.com> --- param/parameterized.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/param/parameterized.py b/param/parameterized.py index 190b77b5..39cc4fe8 100644 --- a/param/parameterized.py +++ b/param/parameterized.py @@ -2393,7 +2393,8 @@ def update(self_, arg=Undefined, /, **kwargs): Reference: https://param.holoviz.org/user_guide/Parameters.html#other-parameterized-methods - Examples: + Examples + -------- ```python import param From 3a17a10f33961b44443dd134e5b8462625af8fc7 Mon Sep 17 00:00:00 2001 From: Marc Skov Madsen Date: Thu, 14 Nov 2024 20:28:11 +0100 Subject: [PATCH 2/4] Update param/parameterized.py Co-authored-by: Maxime Liquet <35924738+maximlt@users.noreply.github.com> --- param/parameterized.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/param/parameterized.py b/param/parameterized.py index 39cc4fe8..765f01b7 100644 --- a/param/parameterized.py +++ b/param/parameterized.py @@ -2309,8 +2309,8 @@ def add_parameter(self_, param_name: str, param_obj: Parameter): param_obj : Parameter The Parameter object to add. - Example - ------- + Examples + -------- ```python import param From b55ef26876b2ada6a3dd00af01b8ec3cd7ca6408 Mon Sep 17 00:00:00 2001 From: Marc Skov Madsen Date: Thu, 14 Nov 2024 20:28:21 +0100 Subject: [PATCH 3/4] Update param/parameterized.py Co-authored-by: Maxime Liquet <35924738+maximlt@users.noreply.github.com> --- param/parameterized.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/param/parameterized.py b/param/parameterized.py index 765f01b7..a2aecdba 100644 --- a/param/parameterized.py +++ b/param/parameterized.py @@ -2710,7 +2710,7 @@ def serialize_parameters(self_, subset=None, mode='json')->str: Parameters ---------- - subset (list, optional): + subset: list, optional A list of parameter names to serialize. If None, all parameters will be serialized. Defaults to None. mode (str, optional): The serialization format. By default, only 'json' is supported. Defaults to 'json'. From 173ff9c58f1f7804c319781fc432b79822221ca3 Mon Sep 17 00:00:00 2001 From: Marc Skov Madsen Date: Thu, 14 Nov 2024 20:31:28 +0100 Subject: [PATCH 4/4] Update param/reactive.py Co-authored-by: Philipp Rudiger --- param/reactive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/param/reactive.py b/param/reactive.py index d593173c..3689d614 100644 --- a/param/reactive.py +++ b/param/reactive.py @@ -803,7 +803,8 @@ def rx(self) -> reactive_ops: Reference: https://param.holoviz.org/user_guide/Reactive_Expressions.html#special-methods-on-rx - Examples: + Examples + -------- Lets create a Parameterized instance: