Discover this year's submissions to the Dataiku Frontrunner Awards and give kudos to your favorite use cases and success stories!READ MORE

Run Python recipe from Shiny webapp button click?

Solved!
info-rchitect
Level 5
Run Python recipe from Shiny webapp button click?

Hi,

 

I have a Python recipe that extracts data from a REST API to get a dataset of a user's SQL jobs.  I would like to be able to allow the user to click a button and have the recipe run to the dataset is updated on demand.

 

thx


Operating system used: Windows 10

0 Kudos
1 Solution
AlexT
Dataiker
Dataiker
3 Replies
AlexT
Dataiker
Dataiker

Hi,

The solution could be similar to what was suggested in reticulate : https://rstudio.github.io/reticulate/  

https://community.dataiku.com/t5/General-Discussion/Calling-custom-Python-function-in-Shiny-webapp/m...

Let us know if that works for you. 

 

0 Kudos
info-rchitect
Level 5
Author

Hi AlexT,

 

Is there a Python function for running a Python recipe?  I am glad to use reticulate to call it if one exists.

 

thx

0 Kudos
AlexT
Dataiker
Dataiker

Hi,

There is  method described here https://doc.dataiku.com/dss/latest/python-api/datasets-other.html#building-a-dataset

In most cases you could run a scenario that builds the datasets you want 

https://doc.dataiku.com/dss/latest/python-api/scenarios.html#run-a-scenario