Ready for Dataiku 9? Try out the Crash Course on new features! GET STARTED

Usage of Shell Recipe

Nikita_19
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
dima_naboka
Dataiker
Dataiker
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