def make_buttons() -> dict:
    """Make buttons Play and Pause"""
    return dict(
        type="buttons",
        buttons=[
            dict(label="Play", method="animate", args=[None]),
            dict(
                args=[
                    [None],
                    {
                        "frame": {"duration": 0, "redraw": False},
                        "mode": "immediate",
                        "transition": {"duration": 0},
                    },
                ],
                label="Pause",
                method="animate",
            ),
        ],
    )