If I have an existing Python code block, then I create a function and try to use this function in Python it says "function2" is not defined:
However, if I make a new code block and copy/paste the contents of the old one into the new one it no longer throws this error:
I just realized calling functions from python doesn't work in general:
I guess this is actually a FR to add function calling to Python code blocks? .... I updated the topic and category XD
Hi @bobthebear, you're right, as you can see from the docs, functions can only be called from other functions, a js block, or a loop block. We have an existing FR for this but anytime the community bumps it, that helps make a case!
1 Like