Skip to content

Can we reduce the number of false-positives of the user warning: automatically deduplicated selection parameter #3916

@mattijn

Description

@mattijn

What happened?

With the release of altair version 6.0.0, we now raise a user warning in situations described here #3891:

This user warning looks as such:

UserWarning: Automatically deduplicated selection parameter with identical configuration. 
If you want independent parameters, explicitly name them differently (e.g., name='param1', name='param2').
See https://github.com/vega/altair/issues/3891
  exec(compiled, namespace)

When building the docs, see for example this GitHub actions (open Build docs and scroll the loggings), I noticed that this user warning is raised several times as a false-positive. In most of these cases we are re-using the same selection, such as in a layered or concatenated chart. In that case we can safely ignore the warning, while Altair is just letting us know that it merged the identical definitions for us.

What would you like to happen instead?

But what if I don't want a warning? How do I change my specification to not have this? And, can we find ways to reduce the number of false-positives of these user warnings?

Which version of Altair are you using?

Altair version 6.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triageBug report needs maintainer response

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions