Run Python recipe from Shiny webapp button click?
![info-rchitect](https://us.v-cdn.net/6038231/uploads/lithium_attachments/n9089iA7C08C68990A5113.png)
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
Best Answer
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,211 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
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,211 Dataiker
Hi,
The solution could be similar to what was suggested in reticulate : https://rstudio.github.io/reticulate/
Let us know if that works for you.
-
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