Expose an API to users that tells them where Python code is being executed
![info-rchitect](https://us.v-cdn.net/6038231/uploads/lithium_attachments/n9089iA7C08C68990A5113.png)
info-rchitect
Registered Posts: 172 ✭✭✭✭✭✭
Hi,
This is created based on this post. For all of the places, Python code can be executed (e.g.. recipe, application, notebook, etc.), I would like to see an similar to the one below. This will provide high value IMO, as it allows users to safely execute code without having to manually check if an API is valid given the current context. For example, many Python recipe functions cannot be executed in notebooks.
thx
import dataiku if dataiku.in_recipe: ... elif dataiku.in_notebook: ...
Tagged: