deploying python recipe

Solved!
Tokka
Level 1
deploying python recipe

Hello,

I am trying to build a content-based recommendation model that is applied in a python recipe and I want to deploy it, how can I do that from the python recipe??

Also, I thought of converting it to a plugin but will that be helpful in my case?

Thanks in advance.

0 Kudos
1 Solution
AlexT
Dataiker

Hi @Tokka ,
The API endpoint would make your Python code callable from the REST API endpoint. 

So if I understand correctly, you want to be able to deploy the project bundle to the automation node via Python code. This would not be achieved via recipe typically,  but instead using Python or various scenario steps already available like "Create bundle":

Screenshot 2023-06-04 at 10.57.37 PM.png

This is possible if you want to go a custom code route. You can find code snippets here:
From this tutorial: https://knowledge.dataiku.com/latest/mlops-o16n/ci-cd/tutorial-jenkins-pipeline.html#deploy-to-prod-...
This would be typically run as Python step in a scenario rather than a recipe.
https://downloads.dataiku.com/public/website-additional-assets/code/dss_pipeline-master.zip

Hope that helps!

View solution in original post

0 Kudos
3 Replies
AlexT
Dataiker

Hi @Tokka ,
By deploying, do you mean you want to be able to access this via API?
In that case, you could create a Python API endpoint :

https://doc.dataiku.com/dss/latest/apinode/introduction.html#exposing-arbitrary-python-and-r-functio...
If you simply want for other DSS users to reuse this model/code you could leverage Code libraries or a plugin as you mentioned

0 Kudos
Tokka
Level 1
Author

Hello @AlexT ,

by deploying I mean to be able to deploy it on an Automation node. will creating a python API endpoint of the recipe allow me to deploy it there??

0 Kudos
AlexT
Dataiker

Hi @Tokka ,
The API endpoint would make your Python code callable from the REST API endpoint. 

So if I understand correctly, you want to be able to deploy the project bundle to the automation node via Python code. This would not be achieved via recipe typically,  but instead using Python or various scenario steps already available like "Create bundle":

Screenshot 2023-06-04 at 10.57.37 PM.png

This is possible if you want to go a custom code route. You can find code snippets here:
From this tutorial: https://knowledge.dataiku.com/latest/mlops-o16n/ci-cd/tutorial-jenkins-pipeline.html#deploy-to-prod-...
This would be typically run as Python step in a scenario rather than a recipe.
https://downloads.dataiku.com/public/website-additional-assets/code/dss_pipeline-master.zip

Hope that helps!

0 Kudos