def METHOD_NAME(df):
    counts = 0
    @df.signal_selection_changed.connect
    def update(df, name):
        nonlocal counts
        counts += 1
    df.select(df.x > 3, name='bla')
    assert counts == 1