Home Forums Nazca Hashme with multiple cells Reply To: Hashme with multiple cells

#6094
winigerj
Member

Dear Ronald and Xaveer,

Just on that topic. I found it to be extremely useful to use **kwargs for the function definitions, as this provides a lot of flexibility (as eg. pass down arguments from func to func).
But it seems, that when defining the function solely with  kwargs as argument, like: (sorry, somehow i did not manage to make markdown/html block code work here)

@nd.bb_util.hashme('func')

def func(**kwargs):
    with nd.Cell(hashme=True) as C:
        # stuff with kwargs
    return C

The hashme seems not to notice any change in the kwargs. So if I change e.g. the kwarg[‘angle’] parameter, the hashme doesn’t get the change of variable and gets the first instantiation with the old angle parameter.

Is there a way to change this behaviour, or do I need to give all the params explicitly to make it work?

Thanks already!

Best,

Joel