Skip to content

In example code in document change value of script_repr_suppress_defaults = to False #1159

Open
Coderambling wants to merge 1 commit into
holoviz:mainfrom
Coderambling:patch-7
Open

In example code in document change value of script_repr_suppress_defaults = to False #1159
Coderambling wants to merge 1 commit into
holoviz:mainfrom
Coderambling:patch-7

Conversation

@Coderambling

@Coderambling Coderambling commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The doc says:

"If you want a record of the complete set of parameter values, including all defaults, you can enable that behavior:"

In the code block that follows, script_repr_suppress_defaults is set to True. But in order to show the complete set of parameter values, suppression should be set to False.

Also, the document should mention the default value for script_repr_suppress_defaults. It seems that by default it is set to True.

In the API reference documentation, I was unable to find mention of script_repr_suppress_defaults . This seems to be a documentation gap. Should I file a separate issue for this?

Description

Fixes #{issue}

AI Disclosure

Tool & Model:
Usage:

  • I have tested all AI-generated content in my PR.
  • I take responsibility for all AI-generated content in my PR.

Checklist

  • Tests added and are passing
  • Added documentation

…eblock

The doc says:

"If you want a record of the complete set of parameter values, including all defaults, you can enable that behavior:"

n the code block that follows, script_repr_suppress_defaults is set to True. But in order to show the complete set of parameter values, suppression should be set to False.

Also, the document should mention the default value for script_repr_suppress_defaults. It seems that by default it is set to True.

In the API reference documentation, I was unable to find mention  of script_repr_suppress_defaults . This seems to be a documentation gap. Should I file a separate issue for this?
@Coderambling Coderambling changed the title Change value of script_repr_suppress_defaults to False in example code in document In example code in document change value of script_repr_suppress_defaults to False Jul 2, 2026
@Coderambling Coderambling changed the title In example code in document change value of script_repr_suppress_defaults to False In example code in document change value of script_repr_suppress_defaults = to False Jul 2, 2026
Coderambling added a commit to Coderambling/param that referenced this pull request Jul 4, 2026
…ress_defaults

Added mention of suppress flag (or is it a global config variable?) to the script_repr docstring, for awareness, clarification and completeness.

See also holoviz#1159 .


By default, script_repr prints only parameter values that have changed from their defaults; for the complete set of parameter values, including all defaults, first run:

    param.parameterized.script_repr_suppress_defaults=False
    
For more details on this, see:
    https://param.holoviz.org/en/docs/latest/user_guide/Serialization_and_Persistence.html#script-repr-limitations-and-workarounds
Coderambling added a commit to Coderambling/param that referenced this pull request Jul 4, 2026
…press_defaults


Added mention of suppress flag (or is it a global config variable?) to the docstring of script_repr docstring, for awareness, clarification and completeness.

See also holoviz#1159 .


By default, script_repr prints only parameter values that have changed from their defaults; for the complete set of parameter values, including all defaults, first run:

    param.parameterized.script_repr_suppress_defaults=False
    
For more details on this, see:
    https://param.holoviz.org/en/docs/latest/user_guide/Serialization_and_Persistence.html#script-repr-limitations-and-workarounds

<!-- Using AI? READ FIRST: https://holoviz.org/contribute.html#ai-readme -->

## Description
<!-- Summarize the change and which issue is fixed. Be sure to include relevant motivation and context. Describe the tests run to verify these changes and how to reproduce them (copy-pastable minimal, reproducible example). Include visuals when possible (e.g. before/after screenshots). -->

Fixes #{issue}


## AI Disclosure
<!-- Delete this section if AI was not used, else specify the tool/model (e.g. Cursor + Sonnet 4.6, Claude Code + Opus 4.6, ChatGPT) and briefly describe how it was used. Failure to disclose AI usage may result in a ban. -->

Tool & Model:
Usage:

- [ ] I have tested all AI-generated content in my PR.
- [ ] I take responsibility for all AI-generated content in my PR.


## Checklist
<!-- Remove the non relevant items. -->

- [ ] Tests added and are passing
- [ ] Added documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant