Coming soon: We’re working on a brand new, revamped Community experience. Want to receive updates? Sign up now!

0 votes
Hi, I'm developing a plugin with two python custom recipes. Is there a way to execute one recipe from the other?

I've defined a function and tried to call it but I always get "non-package" error. I also tried to define the function in a third file and it doesn't work either.


reopened by

1 Answer

+1 vote
Best answer

You can't really "call a recipe from another". When you develop a custom recipe in a plugin, you are actually developing a new "type" of recipe. Whereas the only thing that could be called is an "instance" of a recipe, that you don't know about at development time.

It sounds however that what you want to achieve is to share some code between both your recipes, so that common functions don't need to be written twice. This is possible through the "python-lib" folder of the plugin:
selected by
1,339 questions
1,365 answers
11,916 users

©Dataiku 2012-2018 - Privacy Policy