Expose an API to users that tells them where Python code is being executed
info-rchitect
Registered Posts: 188 ✭✭✭✭✭✭
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: