Expose an API to users that tells them where Python code is being executed

info-rchitect
info-rchitect Registered Posts: 186 ✭✭✭✭✭✭
edited July 16 in Product Ideas

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

@Turribeach

import dataiku

if dataiku.in_recipe:
    ...
elif dataiku.in_notebook:
   ...

4
4 votes

New · Last Updated

Setup Info
    Tags
      Help me…