This problem has come up before, but a solution wasnt presented (though it was closed). I restarted the kernel . Any other ideas? Like a previous post, i get to run a non-editable piece of code, and it fails with a recursive error.
Aside from restarting the kernel, any other thoughts?
Many thanks
But as always with the non-editable test cells, the point is that they call the function(s) that you wrote. In this case it’s insert_audio_clip
. The recursion is apparent in the exception trace, isn’t it? From within insert_audio_clip
, you call insert_audio_clip
. Recursion is not illegal, but if you use it you need to make sure it’s bounded.
1 Like
I just refreshed my memory by looking at my implementation of that function and there is no need for recursion there.
Thanks I shouldnt have used the function recursively! I was intent on using all the helper functions and didnt realise i was creating this one particular helper function myself. I found a simpler way to do this that does NOT use insert_audio_clip() here! Thanks. Case closed.
2 Likes