We're excited to announce that we're launching the second installment of Dataiku Product Days Register Now

Usage of Shell Recipe

Level 1
Usage of Shell Recipe

Hi Team,

I would like to know the advantages and limitations of shell recipe. As I didn't find the documentation much fruitful, can you please share some more insights/details about the recipe.

0 Kudos
1 Reply
Lets say you have print_date.py file in DSS DATA_DIR folder. If you want to incorporate file output into your pipeline you can introduce shell recipe.
$ python print_date.py
now = 2021-02-09 08:44:41.548331
date and time = 09/02/2021 08:44:41
In the test below I'm using echo to rename the column and add a custom row of text to the output. By using environment variables I can print current project and cd to DSS DATA_DIR folder to then run my print_date.py file.
Screenshot 2021-02-09 at 08.54.15.pngScreenshot 2021-02-09 at 08.54.27.png
A banner prompting to get Dataiku DSS