Creating custom source block using python-repeated output

I’m creating a source block using python. The block takes input from the
user for the length of the vector. Some math is done inside the block
and the vector is produced.

When I run it, the correct vector is being produced. But the same vector
is being produced over and over again.

Is the “repeat” a default parameter? How can I change that? Is there
something in my python code that I need to add?

Thanks
AKY